<template>
  <div class="dlhytable">
    <ul class="mui-table-view">
      <li class="mui-table-view-cell mui-collapse">
        <a class="mui-navigate-right" href="javascript:void(0)">业户基本情况</a>
        <div class="mui-collapse-content">
          <el-table
            :data="yhjbqkData"
            class="tb-edit"
            border
            style="width: 100%"
            highlight-current-row
            :row-class-name="tableRowClassName0"
            @row-dblclick="handleCurrentChange"
          >
            <el-table-column
              :align="yhjbqkColumn.columnIndex>0?(yhjbqkColumn.columnIndex==1?'center':'right'):'center'"
              v-for="(yhjbqkColumn,i) in yhjbqkColumnNameList"
              :key="i"
              :prop="yhjbqkColumn.propName"
              :fixed="i==0"
              :style="i==0?'{z-index: 99;}':''"
              :label="yhjbqkColumn.name"
            >
              <template slot-scope="scope">
                <el-input
                  :disabled="yhjbqkColumn.type==='text' || scope.$index == 0 || scope.$index == 1|| scope.$index == 2|| scope.$index == 3||scope.$index == 7||scope.$index == 8||scope.$index == 9||scope.$index == 10|| scope.$index == 11"
                  size="small"
                  v-model="scope.row[yhjbqkColumn.propName]"
                  :placeholder="scope.row[yhjbqkColumn.propName]"
                  type="text"
                  v-if="scope.row[yhjbqkColumn.propName]!='-'"
                  @click.native.capture="showPicker(scope.$index)"
                ></el-input>
                <span>{{scope.row[yhjbqkColumn.propName]}}</span>
              </template>
            </el-table-column>
          </el-table>
        </div>
      </li>
      <li class="mui-table-view-cell mui-collapse">
        <a class="mui-navigate-right" href="javascript:void(0)">运力情况</a>
        <div class="mui-collapse-content">
          <el-table
            :data="ylqkData"
            class="tb-edit"
            border
            style="width: 100%"
            highlight-current-row
            :row-class-name="tableRowClassName1"
            @row-dblclick="handleCurrentChange"
          >
            <el-table-column
              v-for="(ylqkColumn,i) in ylqkColumnNameList"
              :align="ylqkColumn.columnIndex>0?'center':'center'"
              :key="i"
              :prop="ylqkColumn.propName"
              :fixed="i==0"
              :style="i==0?'{z-index: 99;}':''"
              :label="ylqkColumn.name"
              :width="i=0||i==1||i==2?70:(i==3||i==5?110:125)"
            >
              <template slot-scope="scope">
                <div
                  :class="getPaddingLeft(ylqkColumn,scope)"
                  :style="ylqkColumn.columnIndex>0?(ylqkColumn.columnIndex==1?'text-align:center':'text-align:right'):'text-align:left'"
                >
                  <el-input
                    :disabled="ylqkColumn.type=='text'|| scope.$index==1|| scope.$index==0"
                    size="small"
                    v-model="scope.row[ylqkColumn.propName]"
                    :placeholder="scope.row[ylqkColumn.propName]"
                    type="number"
                    v-if="scope.row[ylqkColumn.propName]!='-'"
                  ></el-input>
                  <span>{{scope.row[ylqkColumn.propName]}}</span>
                </div>
              </template>
            </el-table-column>
          </el-table>
        </div>
      </li>
      <li class="mui-table-view-cell mui-collapse">
        <a class="mui-navigate-right" href="javascript:void(0)">运输情况</a>
        <div class="mui-collapse-content">
          <el-table
            :data="ysqkData"
            class="tb-edit"
            border
            style="width: 100%"
            highlight-current-row
            :row-class-name="tableRowClassName2"
            @row-dblclick="handleCurrentChange"
          >
            <el-table-column
              v-for="(ysqkColumn,i) in ysqkColumnNameList"
              :align="ysqkColumn.columnIndex>0?'center':'center'"
              :key="i"
              :prop="ysqkColumn.propName"
              :fixed="i==0"
              :style="i==0?'{z-index: 99;}':''"
              :label="ysqkColumn.name"
              :width="i==0?140:(i==1?70:105)"
            >
              <template slot-scope="scope">
                <div
                  :class="getPaddingLeft(ysqkColumn,scope)"
                  :style="ysqkColumn.columnIndex>0?(ysqkColumn.columnIndex==1?'text-align:center':'text-align:right'):'text-align:left'"
                >
                  <el-input
                    :disabled="ysqkColumn.type=='text'|| scope.$index==4 || (ysqkColumn.propName=='pjyj' && scope.$index==0) || (ysqkColumn.propName=='hwzzl' && scope.$index==0)|| (ysqkColumn.propName=='hyl' && scope.$index==0)"
                    size="small"
                    v-model="scope.row[ysqkColumn.propName]"
                    :placeholder="scope.row[ysqkColumn.propName]"
                    type="number"
                    v-if="scope.row[ysqkColumn.propName]!='-'"
                  ></el-input>
                  <span>{{scope.row[ysqkColumn.propName]}}</span>
                </div>
              </template>
            </el-table-column>
          </el-table>
          <mt-field label="“其他”的具体货物名称:" placeholder="请勿填写零担、散货" type="email" v-model="yhdcb2019116"></mt-field>
        </div>
      </li>
      <li class="mui-table-view-cell mui-collapse">
        <a class="mui-navigate-right" href="javascript:void(0)">财务情况</a>
        <div class="mui-collapse-content">
          <el-table
            :data="cwqkTable"
            class="tb-edit"
            border
            style="width: 100%"
            :row-class-name="tableRowClassName3"
            highlight-current-row
            @row-dblclick="handleCurrentChange"
          >
            <el-table-column
              v-for="(cwqkColumn,i) in cwqkColumnNameList"
              :align="cwqkColumn.columnIndex>0?'center':'center'"
              :key="i"
              :prop="cwqkColumn.propName"
              :fixed="i==0"
              :style="i==0?'{z-index: 99;}':''"
              :label="cwqkColumn.name"
              :width="i==0?140:cwqkColumn.propName=='sl'?150:70"
            >
              <template slot-scope="scope">
                <div
                  :class="getPaddingLeft(cwqkColumn,scope)"
                  :style="cwqkColumn.columnIndex==0?'text-align:left':cwqkColumn.columnIndex==2?'text-align:right':'text-align:center'"
                >
                  <el-input
                    :disabled="cwqkColumn.type==='text'"
                    size="small"
                    v-model="scope.row[cwqkColumn.propName]"
                    :placeholder="scope.row[cwqkColumn.propName]"
                    type="number"
                    v-if="scope.row[cwqkColumn.propName]!='-'"
                  ></el-input>
                  <span>{{scope.row[cwqkColumn.propName]}}</span>
                </div>
              </template>
            </el-table-column>
          </el-table>
        </div>
      </li>
      <li class="mui-table-view-cell mui-collapse">
        <a class="mui-navigate-right" href="javascript:void(0)">能耗情况</a>
        <div class="mui-collapse-content">
          <el-table
            :data="nhqkTable"
            class="tb-edit"
            border
            style="width: 100%"
            :row-class-name="tableRowClassName4"
            highlight-current-row
            @row-dblclick="handleCurrentChange"
          >
            <el-table-column
              v-for="(nhqkColumn,i) in nhqkColumnNameList"
              :align="nhqkColumn.columnIndex>0?'center':'center'"
              :key="i"
              :prop="nhqkColumn.propName"
              :fixed="i==0"
              :style="i==0?'{z-index: 99;}':''"
              :label="nhqkColumn.name"
              :width="i==0?140:nhqkColumn.propName=='xslc'?140:nhqkColumn.propName=='nh'?180:nhqkColumn.propName=='code'?70:120"
            >
              <template slot-scope="scope">
                <div
                  :class="getPaddingLeft(nhqkColumn,scope)"
                  :style="nhqkColumn.columnIndex>0?(nhqkColumn.columnIndex==1?'text-align:center':'text-align:right'):'text-align:left'"
                >
                  <el-input
                    :disabled="nhqkColumn.type==='text'|| scope.$index==1|| scope.$index==0"
                    size="small"
                    v-model="scope.row[nhqkColumn.propName]"
                    :placeholder="scope.row[nhqkColumn.propName]"
                    type="number"
                    v-if="scope.row[nhqkColumn.propName]!='-'"
                  ></el-input>
                  <span>{{scope.row[nhqkColumn.propName]}}</span>
                </div>
              </template>
            </el-table-column>
          </el-table>
        </div>
      </li>
      <!-- add by xsl -->
      <!-- modified by qzn 20190710  -->
      <li class="mui-table-view-cell mui-collapse">
        <a class="mui-navigate-right" href="javascript:void(0)">补充资料</a>
        <div class="mui-collapse-content">
          <mt-field
            @click.native.capture="showPickerArea"
            label="货运车辆从事运输的主要区："
            placeholder="请输入"
            type="text"
            :readonly="true"
            v-model="yhdcb2019095"
          ></mt-field>
          <mt-field
            label="该类运输的趟次数在全部运输中占比约为(%)："
            placeholder="请输入"
            type="tel"
            v-model="yhdcb2019098"
          ></mt-field>
          <mt-field label="集装箱箱运量(TEU)：" placeholder="请输入" type="number" v-model="yhdcb2019079"></mt-field>
          <mt-field label="其他燃料类型:" style placeholder="请输入" type="text" v-model="yhdcb2019097"></mt-field>

          <mt-field label="单位负责人：" style placeholder="请输入" type="text" v-model="yhdcb2019099"></mt-field>
          <mt-field label="统计负责人：" style placeholder="请输入" type="text" v-model="yhdcb2019100"></mt-field>
          <mt-field label="填表人：" style placeholder="请输入" type="text" v-model="yhdcb2019101"></mt-field>
          <mt-field label="填表人联系电话：" style placeholder="请填写手机号或固定电话" type="text" v-model="yhdcb2019102"></mt-field>

          <mt-field label="报出日期：" placeholder="请输入" type="date" v-model="yhdcb2019103"></mt-field>
        </div>
      </li>
    </ul>
    <div
      v-if="showOpinion"
      style="z-index:9999;position:fixed;top:0px;: rgba(0, 0, 0, 0.5);height: 100%;width: 100%;"
    >
      <div
        style="position:fixed;top:30%;padding:10px;background:#FFFFFF;border: #6d6d72;border-radius:5px;margin-left: 10%;margin-right: 10%;width: 80%;"
      >
        <textarea
          placeholder="请填写本次的审定通过说明(200字以内)"
          style="padding:5px; background-color: white; height: 80px;border-color: rgba(144, 144, 144, 0.9);border-radius:5px;border-width: 0.5px;width: 100%;"
          v-model="opinionText"
        ></textarea>
        <div style="flex-direction: row;justify-content: center;float: right;margin-top: 10px;">
          <mt-button
            size="small"
            type="primary"
            slot="right"
            @click.native="showOpinion=!showOpinion"
          >取消</mt-button>
          <mt-button size="small" type="primary" slot="right" @click.native="approval">确定</mt-button>
        </div>
      </div>
    </div>
    <!-- 行政区划 -->
    <mt-popup
      v-model="popupVisible"
      popup-transition="popup-fade"
      closeOnClickModal="true"
      position="bottom"
    >
      <mt-picker :slots="slots101" @change="onValuesChange" value-key="value" showToolbar>
        <mt-header title="选择省市区">
          <mt-button slot="left" class="cancle" @click="popupVisible = !popupVisible">取消</mt-button>
          <mt-button slot="right" class="sure" @click="sure">确定</mt-button>
        </mt-header>
      </mt-picker>
    </mt-popup>
    <!-- 企业登录注册类型 -->
    <mt-popup
      v-model="popupVisible103"
      popup-transition="popup-fade"
      closeOnClickModal="true"
      position="bottom"
    >
      <mt-picker :slots="slots103" @change="onValuesChange103" value-key="value" showToolbar>
        <mt-header title="选择企业登录注册类型">
          <mt-button slot="left" class="cancle" @click="popupVisible103 = !popupVisible103">取消</mt-button>
          <!-- <mt-button slot="left" class="cancle" @click="clear103" style="margin-left:15px">清空</mt-button> -->
          <mt-button slot="right" class="sure" @click="sure103">确定</mt-button>
        </mt-header>
      </mt-picker>
    </mt-popup>
    <!-- 新 -->
    <mt-popup
      v-model="popupVisible1031"
      popup-transition="popup-fade"
      closeOnClickModal="true"
      position="bottom"
    >
      <mt-picker :slots="slotsnew110" @change="onValuesChangeNew103" value-key="value" showToolbar>
        <mt-header title="选择">
          <mt-button slot="left" class="cancle" @click="popupVisible1031 = !popupVisible1031">取消</mt-button>
          <mt-button slot="right" class="sure" @click="sure110">确定</mt-button>
        </mt-header>
      </mt-picker>
    </mt-popup>
    <!-- 主营交通输运业务类别 -->
    <mt-popup
      v-model="popupVisible110"
      popup-transition="popup-fade"
      closeOnClickModal="true"
      position="bottom"
    >
      <mt-picker :slots="slots110" value-key="name" showToolbar ref="picker">
        <mt-header title="选择业务类别">
          <mt-button slot="left" class="cancle" @click="popupVisible110 = !popupVisible110">取消</mt-button>
          <mt-button slot="right" class="sure" @click="sure110">确定</mt-button>
        </mt-header>
      </mt-picker>
    </mt-popup>
    <!-- 企业隶属关系 -->
    <mt-popup
      v-model="popupVisible112"
      popup-transition="popup-fade"
      closeOnClickModal="true"
      position="bottom"
    >
      <mt-picker :slots="slots112" value-key="name" showToolbar ref="picker112">
        <mt-header title="选择企业隶属关系">
          <mt-button slot="left" class="cancle" @click="popupVisible112 = !popupVisible112">取消</mt-button>
          <mt-button slot="right" class="sure" @click="sure112">确定</mt-button>
        </mt-header>
      </mt-picker>
    </mt-popup>
    <!-- 是否法人单位 -->
    <mt-popup
      v-model="popupVisible104"
      popup-transition="popup-fade"
      closeOnClickModal="true"
      position="bottom"
    >
      <mt-picker :slots="slots104" value-key="name" showToolbar ref="picker104">
        <mt-header title="选择是否法人单位">
          <mt-button slot="left" class="cancle" @click="popupVisible104 = !popupVisible104">取消</mt-button>
          <mt-button slot="right" class="sure" @click="sure104">确定</mt-button>
        </mt-header>
      </mt-picker>
    </mt-popup>
    <!-- 是否主营交通运输、隶属于企业集团） -->
    <mt-popup
      v-model="popupVisible108"
      popup-transition="popup-fade"
      closeOnClickModal="true"
      position="bottom"
    >
      <mt-picker :slots="slots108" value-key="name" showToolbar ref="picker108">
        <mt-header title="选择是否主营交通运输">
          <mt-button slot="left" class="cancle" @click="popupVisible108 = !popupVisible108">取消</mt-button>
          <mt-button slot="right" class="sure" @click="sure108">确定</mt-button>
        </mt-header>
      </mt-picker>
    </mt-popup>
    <!-- 是否隶属于企业集团） -->
    <mt-popup
      v-model="popupVisible111"
      popup-transition="popup-fade"
      closeOnClickModal="true"
      position="bottom"
    >
      <mt-picker :slots="slots111" value-key="name" showToolbar ref="picker111">
        <mt-header title="选择是否隶属于企业集团">
          <mt-button slot="left" class="cancle" @click="popupVisible111 = !popupVisible111">取消</mt-button>
          <mt-button slot="right" class="sure" @click="sure111">确定</mt-button>
        </mt-header>
      </mt-picker>
    </mt-popup>
    <!-- 企业经营范围 -->
    <mt-popup
      v-model="popupVisible109"
      popup-transition="popup-fade"
      closeOnClickModal="true"
      position="bottom"
    >
      <div>
        <mt-header title="选择企业经营范围">
          <mt-button slot="left" class="cancle" @click="popupVisible109 = !popupVisible109">取消</mt-button>
          <!-- <mt-button slot="left" class="cancle" @click="clear109" style="margin-left:15px">清空</mt-button> -->
          <mt-button slot="right" class="sure" @click="sure109">确定</mt-button>
        </mt-header>
        <mt-checklist v-model="checkListValue" :options="options"></mt-checklist>
      </div>
    </mt-popup>
    <!-- 个体经营范围 -->
    <mt-popup
      v-model="popupVisible1091"
      popup-transition="popup-fade"
      closeOnClickModal="true"
      position="bottom"
    >
      <div>
        <mt-header title="选择企业经营范围">
          <mt-button slot="left" class="cancle" @click="popupVisible1091 = !popupVisible1091">取消</mt-button>
          <mt-button slot="right" class="sure" @click="sure1091">确定</mt-button>
        </mt-header>
        <mt-checklist v-model="checkListValue1" :options="options1"></mt-checklist>
      </div>
    </mt-popup>
    <mt-popup
      v-model="popupVisibleArea"
      popup-transition="popup-fade"
      closeOnClickModal="true"
      position="bottom"
    >
      <mt-picker :slots="slotsArea" showToolbar ref="pickerArea" value-key="name">
        <div class="picker-toolbar-title">
          <div class="usi-btn-cancel" @click="popupVisibleArea = !popupVisibleArea">取消</div>
          <div class="usi-btn-cancel" @click="clearArea">清空</div>
          <div class>请选择</div>
          <div class="usi-btn-sure" @click="sureArea">确定</div>
        </div>
      </mt-picker>
    </mt-popup>
  </div>
</template>
<script>
import { Toast } from "mint-ui";
import { Checklist } from "mint-ui";
import { Field } from "mint-ui";

export default {
  data() {
    return {
      
      yhdcb2019103:"",
      //运输表监控字段
      hyl301:"",
      hyzzl301:"",
      pjyj301:"",
      pjyj302:"",
      pjyj303:"",
      pjyj304:"",

      pjyjFlag:true,

      //省市县
      provincesArray: "",
      cityArray: "",
      countyArray: "",

      //保存提示
      saveToast: true,
      //补充资料
      yhdcb2019095: "",
      yhdcb2019098: "",
      yhdcb2019079: "",
      yhdcb2019097: "",
      yhdcb2019116: "",
      yhdcb2019099: "",//单位负责人
      yhdcb2019100: "",//统计负责人
      yhdcb2019101: "",//填表人
      yhdcb2019102: "",//填表人联系电话

      checkListValue: [],
      qyjyfwCode: "",
      options: [],
      checkListValue1: [],
      qyjyfwCode1: "",
      options1: [],
      //选择器 状态
      popupVisible: false, //选择器 弹出状态
      popupVisible103: false,
      popupVisible1031: false,
      popupVisible110: false,
      popupVisible112: false,
      popupVisible104: false,
      popupVisible108: false,
      popupVisible111: false,
      popupVisible109: false,
      popupVisible1091: false,
      popupVisibleArea: false,
      showToolbar: true,
      iosProvinces: "", //省列表
      iosCitys: "", //市列表
      iosCountys: "", //县列表
      countyCode: "", //行政区划 编码
      //yhTypeCode: '',//业户类型 编码
      yhdjzcTypeCode: "", //企业登记注册类型 编码
      sffrdwCode: "", //是否法人单位 编码
      sfzyjtysCode: "", //是否主营交通运输 编码
      first: "",
      second: "",
      third: "",
      result: "",
      provinceValue: "",
      cityValue: "",
      countyValue: "",
      //省市县选择器 数据源
      slots101: [
        {
          flex: 1,
          values: [],
          className: "slot1",
          textAlign: "left",
          defaultIndex: 0
        },
        {
          flex: 1,
          values: [],
          className: "slot2",
          textAlign: "center",
          defaultIndex: 0
        },
        {
          flex: 1,
          values: [],
          className: "slot3",
          textAlign: "right",
          defaultIndex: 0
        }
      ],
      qydlzclxOne: "", //企业登录注册类型 一级列表
      qydlzclxTwo: "", //二级列表
      qydlzclxThree: "", //三级列表
      qydlzclxOne1: "", // 一级列表
      qydlzclxTwo1: "", //二级列表
      qydlzclxThree1: "", //三级列表
      qydlzclxOneValue: "",
      qydlzclxTwoValue: "",
      qydlzclxThreeValue: "",
      qydlzclxOneValue1: "",
      qydlzclxTwoValue1: "",
      qydlzclxThreeValue1: "",
      props: ["show", "province", "city", "county"],
      //企业登录注册类型选择器 数据源
      slots103: [
        {
          flex: 1,
          values: [],
          className: "slot1",
          textAlign: "left",
          defaultIndex: 0
        },
        {
          flex: 1,
          values: [],
          className: "slot2",
          textAlign: "center",
          defaultIndex: 0
        },
        {
          flex: 1,
          values: [],
          className: "slot3",
          textAlign: "right",
          defaultIndex: 0
        }
      ],
      currentTags: {},
      //主营交通运输业务类别
      slots110: [
        {
          values: []
        }
      ],
      slotsnew110: [
        {
          flex: 1,
          values: [
            {
              id: "100",
              value: "公路客运",
              parentId: "0"
            }, {
              id: "200",
              value: "城市客运",
              parentId: "0"
            }, {
              id: "300",
              value: "水路客运",
              parentId: "0"
            }, {
              id: "400",
              value: "道路货运",
              parentId: "0"
            }, {
              id: "500",
              value: "水路货运",
              parentId: "0"
            }, {
              id: "700",
              value: "站场经营",
              parentId: "0"
            }, {
              id: "800",
              value: "港口",
              parentId: "0"
            }
          ],
          className: "slot1",
          textAlign: "left",
          defaultIndex: 0
        },
        {
          flex: 1,
          values: [
            {id: "110",value: "班线客运",parentId: "100"}, 
            {id: "120",value: "旅游客运",parentId: "100"}, 
            {id: "130",value: "包车客运",parentId: "100"}, 
            {id: "190",value: "其他公路客运",parentId: "100" },
            {id: "210",value: "公共汽电车客运",parentId: "200"},
            {id: "220",value: "出租客运",parentId: "200"}, 
            {id: "230",value: "轨道交通",parentId: "200"}, 
            {id: "240",value: "城市客运轮渡",parentId: "200"},
            {id: "310",value: "内河班线",parentId: "300"},
            {id: "329",value: "内河旅游",parentId: "300"},
            {id: "240",value: "其他内河客运",parentId: "300"},
            {id: "330",value: "沿海班线",parentId: "300"},
            {id: "340",value: "沿海旅游",parentId: "300"},
            {id: "349",value: "其他沿海客运",parentId: "300"},
            {id: "350",value: "远洋班线",parentId: "300"},
            {id: "360",value: "远洋旅游",parentId: "300"},
            {id: "369",value: "其他远洋客运",parentId: "300"},
            {id: "410",value: "普通货运",parentId: "400"},
            {id: "421",value: "货物专用运输（集装箱）",parentId: "400"},
            {id: "422",value: "货物专用运输（冷藏保鲜设备）",parentId: "400"},
            {id: "423",value: "货物专用运输（罐式容器）",parentId: "400"},
            {id: "430",value: "大型物件运输",parentId: "400"},
            {id: "440",value: "危险货物运输",parentId: "400"},

            {id: "510",value: "内河干散货",parentId: "500"},
            {id: "520",value: "内河集装箱",parentId: "500"},
            {id: "530",value: "内河液体散货",parentId: "500"},
            {id: "539",value: "其他内河货运",parentId: "500"},
            {id: "540",value: "沿海干散货",parentId: "500"},
            {id: "550",value: "沿海集装箱",parentId: "500"},
            {id: "560",value: "沿海液体散货",parentId: "500"},
            {id: "569",value: "其他沿海货运",parentId: "500"},
            {id: "570",value: "远洋干散货",parentId: "500"},
            {id: "580",value: "远洋集装箱",parentId: "500"},
            {id: "590",value: "远洋液体散货",parentId: "500"},
            {id: "599",value: "其他远洋货运",parentId: "500"},

            {id: "710",value: "客运站场",parentId: "700"},
            {id: "720",value: "货运站场",parentId: "700"},

            {id: "810",value: "码头及其他港口设施服务",parentId: "800"},
            {id: "821",value: "港口旅客运输服务（港内区间运输）",parentId: "800"},
            {id: "822",value: "港口旅客运输服务（非港区运输）",parentId: "800"},
            {id: "831",value: "货物装卸服务（散杂货）",parentId: "800"},
            {id: "832",value: "货物装卸服务（集装箱）",parentId: "800"},
            {id: "833",value: "货物装卸服务（滚装车运输）",parentId: "800"},
            {id: "834",value: "货物仓储服务",parentId: "800"},
            {id: "840",value: "港口拖轮、驳运服务",parentId: "800"},
            {id: "850",value: "船舶港口服务",parentId: "800"},
            {id: "860",value: "港口设施、设备和港口机械的租赁、维修服务",parentId: "800"},
          ],
          className: "slot2",
          textAlign: "right",
          defaultIndex: 0
        }
      ],
      //
      slots112: [
        {
          values: []
        }
      ],
      //是否法人单位
      slots104: [
        {
          values: []
        }
      ],
      //是否主营交通运输、隶属于企业集团
      slots108: [
        {
          values: []
        }
      ],
      //是否隶属于企业集团
      slots111: [
        {
          values: []
        }
      ],
      //是否隶属于企业集团
      slotsArea: [
        {
          values: []
        }
      ],
      cls201: "",
      cls202: "",
      cls203: "",
      cls204: "",
      cls205: "",
      cls206: "",
      bjdw203: "",
      bjdw204: "",
      bjdw205: "",
      bjdw206: "",
      zzl202: "",
      zzl203: "",
      zzl204: "",
      zzl205: "",
      zzl206: "",
      jzxxw203: "",
      jzxxw204: "",
      jzxxw206: "",
      tcs302: "",
      tcs303: "",
      tcs304: "",
      hyl302: "",
      hyl303: "",
      hyl304: "",
      hyl305: "",
      hyl306: "",
      hyl307: "",
      hyl308: "",
      hyl309: "",
      hyl310: "",
      hyl311: "",
      hwzzl302: "",
      hwzzl303: "",
      hwzzl304: "",
      hwzzl305: "",
      hwzzl306: "",
      hwzzl307: "",
      hwzzl308: "",
      hwzzl309: "",
      hwzzl310: "",
      hwzzl311: "",
      cls409: "",
      cls410: "",
      cls411: "",
      cls412: "",
      cls413: "",
      cls414: "",
      xslc409: "",
      xslc410: "",
      xslc411: "",
      xslc412: "",
      xslc413: "",
      xslc414: "",
      nh409: "",
      nh410: "",
      nh411: "",
      nh412: "",
      nh413: "",
      nh414: "",

      showOpinion: false,
      opinionText: "", //通过输入的信息
      operation: "",
      dlhyData: {
        recid: "",
        yhmlk: this.$route.query.id,
        datatime: "2019Y0009",
        floatorder: "",
        //业户基本情况
        YHDCB2019080: "",
        YHDCB2019081: "",
        YHDCB2019082: "",
        YHDCB2019083: "",
        YHDCB2019084: "",
        YHDCB2019085: "",
        YHDCB2019086: "",
        YHDCB2019087: "",
        YHDCB2019088: "",
        YHDCB2019089: "",
        YHDCB2019090: "",
        YHDCB2019091: "",
        YHDCB2019092: "",
        YHDCB2019093: "",
        YHDCB2019094: "",
        YHDCB2019099: "", //单位负责人
        YHDCB2019100: "", //统计负责人
        //运力情况车辆数
        yhdcb2019001: "",
        yhdcb2019002: "",
        yhdcb2019003: "",
        yhdcb2019004: "",
        yhdcb2019005: "",
        YHDCB2019106: "",
        //运力情况吨位标记
        yhdcb2019010: "",
        yhdcb2019011: "",
        yhdcb2019012: "",
        yhdcb2019013: "",
        YHDCB2019107: "",
        //运力情况总质量
        yhdcb2019014: "",
        yhdcb2019104: "",
        yhdcb2019105: "",
        yhdcb2019015: "",
        yhdcb2019016: "",
        YHDCB2019108: "",
        //运力情况集装箱位
        yhdcb2019017: "",
        yhdcb2019018: "",
        yhdcb2019019: "",
        YHDCB2019109: "",
        //运输情况趟次数
        YHDCB2019051: "",
        YHDCB2019052: "",
        YHDCB2019053: "",
        YHDCB2019054: "",
        //运输情况货运量
        yhdcb2019020: "",
        yhdcb2019021: "",
        yhdcb2019022: "",
        yhdcb2019023: "",
        yhdcb2019024: "",
        yhdcb2019025: "",
        yhdcb2019026: "",
        yhdcb2019027: "",
        yhdcb2019028: "",
        yhdcb2019029: "",
        YHDCB2019110: "",
        //运输情况货运周转量
        yhdcb2019030: "",
        yhdcb2019031: "",
        yhdcb2019032: "",
        yhdcb2019033: "",
        yhdcb2019034: "",
        yhdcb2019035: "",
        yhdcb2019036: "",
        yhdcb2019037: "",
        yhdcb2019038: "",
        yhdcb2019039: "",
        YHDCB2019111: "",
        //运输情况平均运距
        YHDCB2019055: "",
        YHDCB2019056: "",
        YHDCB2019057: "",
        YHDCB2019058: "",
        YHDCB2019059: "",
        YHDCB2019060: "",
        YHDCB2019061: "",
        YHDCB2019062: "",
        YHDCB2019063: "",
        YHDCB2019064: "",
        YHDCB2019112: "",
        //财务情况数量
        yhdcb2019044: "",
        yhdcb2019045: "",
        yhdcb2019046: "",
        yhdcb2019047: "",
        yhdcb2019048: "",
        yhdcb2019049: "",
        yhdcb2019050: "",
        //能耗情况车辆数
        YHDCB2019077: "",
        yhdcb2019006: "",
        yhdcb2019007: "",
        yhdcb2019008: "",
        YHDCB2019078: "",
        yhdcb2019009: "",
        YHDCB2019113: "",
        //能耗情况行驶里程
        YHDCB2019065: "",
        YHDCB2019066: "",
        YHDCB2019067: "",
        YHDCB2019068: "",
        YHDCB2019069: "",
        YHDCB2019070: "",
        YHDCB2019114: "",
        //能耗情况能耗
        YHDCB2019071: "",
        YHDCB2019072: "",
        YHDCB2019073: "",
        YHDCB2019074: "",
        YHDCB2019075: "",
        YHDCB2019076: "",
        YHDCB2019115: ""
      },
      yhjbqkColumnNameList: [
        { columnIndex: 0, name: "指标名称", propName: "zbmc", type: "text" },
        { columnIndex: 1, name: "值", propName: "value", type: "input" }
      ],
      ylqkColumnNameList: [
        { columnIndex: 0, name: "指标名称", propName: "zbmc", type: "text" },
        { columnIndex: 1, name: "代码", propName: "code", type: "text" },
        { columnIndex: 2, name: "车辆数（辆）", propName: "cls", type: "input" },
        {
          columnIndex: 3,
          name: "标记吨位（吨）",
          propName: "bjdw",
          type: "input"
        },
        { columnIndex: 4, name: "总质量（吨）", propName: "zzl", type: "input" },
        {
          columnIndex: 5,
          name: "集装箱箱位（TEU）",
          propName: "jzxxw",
          type: "input"
        }
      ],
      ysqkColumnNameList: [
        { columnIndex: 0, name: "指标名称", propName: "zbmc", type: "text" },
        { columnIndex: 1, name: "代码", propName: "code", type: "text" },
        { columnIndex: 2, name: "趟次数", propName: "tcs", type: "input" },
        {
          columnIndex: 3,
          name: "货运量（吨）",
          propName: "hyl",
          type: "input"
        },
        {
          columnIndex: 4,
          name: "货物周转量（吨公里）",
          propName: "hwzzl",
          type: "input"
        },
        {
          columnIndex: 5,
          name: "平均运距（公里）",
          propName: "pjyj",
          type: "input"
        }
      ],
      cwqkColumnNameList: [
        { columnIndex: 0, name: "指标名称", propName: "zbmc", type: "text" },
        { columnIndex: 1, name: "代码", propName: "code", type: "text" },
        { columnIndex: 2, name: "数量（元）", propName: "sl", type: "input" }
      ],
      nhqkColumnNameList: [
        { columnIndex: 0, name: "指标名称", propName: "zbmc", type: "text" },
        { columnIndex: 1, name: "代码", propName: "code", type: "text" },
        {
          columnIndex: 2,
          name: "车辆数（辆）",
          propName: "cls",
          type: "input"
        },
        {
          columnIndex: 3,
          name: "行驶里程（公里）",
          propName: "xslc",
          type: "input"
        },
        {
          columnIndex: 4,
          name: "能耗（吨标煤/升/立方米/千克/千瓦时）",
          propName: "nh",
          type: "input"
        }
      ],
      yhjbqkData: [
        {
          zbmc: "101业户管理机构行政区代码",
          value: ""
        },
        {
          zbmc: "102业户类型",
          value: ""
        },
        {
          zbmc: "103企业登记注册类型",
          value: ""
        },
        {
          zbmc: "104是否法人单位",
          value: ""
        },
        {
          zbmc: "105统一社会信用代码",
          value: ""
        },
        {
          zbmc: "106组织机构代码",
          value: ""
        },
        {
          zbmc: "107道路运输经营许可证字号",
          value: ""
        },
        {
          zbmc: "108是否主营交通运输",
          value: ""
        },
        {
          zbmc: "109经营范围",
          value: ""
        },
        {
          zbmc: "110主营交通运输业务类别",
          value: ""
        },
        {
          zbmc: "111是否隶属于企业集团",
          value: ""
        },
        {
          zbmc: "112企业隶属关系",
          value: ""
        },
        {
          zbmc: "113直接上级公司名称",
          value: ""
        },
        // {
        //   zbmc: "114单位负责人",
        //   value: ""
        // },
        // {
        //   zbmc: "115统计负责人",
        //   value: ""
        // },
        // {
        //   zbmc: "116填表人",
        //   value: ""
        // },
        // {
        //   zbmc: "117填表人联系电话",
        //   value: ""
        // },
        {
          zbmc: "114联系人",
          value: ""
        },
        {
          zbmc: "115联系电话",
          value: ""
        }
      ],
      ylqkData: [
        {
          zbmc: "总计",
          code: "201",
          cls: "",
          bjdw: "",
          zzl: "",
          jzxxw: ""
        },
        {
          zbmc: "按车辆类型分",
          code: "-",
          cls: "-",
          bjdw: "-",
          zzl: "-",
          jzxxw: "-"
        },
        {
          zbmc: "其中:牵引车",
          code: "202",
          cls: "",
          bjdw: "",
          zzl: "",
          jzxxw: ""
        },
        {
          zbmc: "挂车",
          code: "203",
          cls: "",
          bjdw: "",
          zzl: "",
          jzxxw: ""
        },
        {
          zbmc: "集装箱车",
          code: "204",
          cls: "",
          bjdw: "",
          zzl: "",
          jzxxw: ""
        },
        {
          zbmc: "冷藏保温车",
          code: "205",
          cls: "",
          bjdw: "",
          zzl: "",
          jzxxw: ""
        },
        {
          zbmc: "其他",
          code: "206",
          cls: "",
          bjdw: "",
          zzl: "",
          jzxxw: ""
        }
      ],
      ysqkData: [
        {
          zbmc: "总计:",
          code: "301",
          tcs: "",
          hyl: "",
          hwzzl: "",
          pjyj: ""
        },
        {
          zbmc: "其中:集装箱",
          code: "302",
          tcs: "",
          hyl: "",
          hwzzl: "",
          pjyj: ""
        },
        {
          zbmc: "冷藏保温品",
          code: "303",
          tcs: "",
          hyl: "",
          hwzzl: "",
          pjyj: ""
        },
        {
          zbmc: "危险货物",
          code: "304",
          tcs: "",
          hyl: "",
          hwzzl: "",
          pjyj: ""
        },
        {
          zbmc: "按货类分",
          code: "-",
          tcs: "-",
          hyl: "-",
          hwzzl: "-",
          pjyj: "-"
        },
        {
          zbmc: "煤炭及制品",
          code: "305",
          tcs: "",
          hyl: "",
          hwzzl: "",
          pjyj: ""
        },
        {
          zbmc: "金属矿石",
          code: "306",
          tcs: "",
          hyl: "",
          hwzzl: "",
          pjyj: ""
        },
        {
          zbmc: "矿建材料及水泥",
          code: "307",
          tcs: "",
          hyl: "",
          hwzzl: "",
          pjyj: ""
        },
        {
          zbmc: "机械设备电器",
          code: "308",
          tcs: "",
          hyl: "",
          hwzzl: "",
          pjyj: ""
        },
        {
          zbmc: "轻工医药产品",
          code: "309",
          tcs: "",
          hyl: "",
          hwzzl: "",
          pjyj: ""
        },
        {
          zbmc: "鲜活农产品",
          code: "310",
          tcs: "",
          hyl: "",
          hwzzl: "",
          pjyj: ""
        },
        {
          zbmc: "其他",
          code: "311",
          tcs: "",
          hyl: "",
          hwzzl: "",
          pjyj: ""
        }
      ],
      cwqkTable: [
        {
          zbmc: "资产总计",
          code: "401",
          sl: ""
        },
        {
          zbmc: "负债合计",
          code: "402",
          sl: ""
        },
        {
          zbmc: "营业收入",
          code: "403",
          sl: ""
        },
        {
          zbmc: "其中:运输收入",
          code: "404",
          sl: ""
        },
        {
          zbmc: "营业成本",
          code: "405",
          sl: ""
        },
        {
          zbmc: "其中:运输成本",
          code: "406",
          sl: ""
        },
        {
          zbmc: "营业利润",
          code: "407",
          sl: ""
        }
      ],
      nhqkTable: [
        {
          zbmc: "总计(不含挂车)",
          code: "408",
          cls: "",
          xslc: "",
          nh: ""
        },
        {
          zbmc: "按燃料类型分",
          code: "-",
          cls: "-",
          xslc: "-",
          nh: "-"
        },
        {
          zbmc: "其中:汽油车",
          code: "409",
          cls: "",
          xslc: "",
          nh: ""
        },
        {
          zbmc: "柴油车",
          code: "410",
          cls: "",
          xslc: "",
          nh: ""
        },
        {
          zbmc: "压缩天然气车",
          code: "411",
          cls: "",
          xslc: "",
          nh: ""
        },
        {
          zbmc: "液化天然气车",
          code: "412",
          cls: "",
          xslc: "",
          nh: ""
        },
        {
          zbmc: "纯电动车",
          code: "413",
          cls: "",
          xslc: "",
          nh: ""
        },
        {
          zbmc: "其他",
          code: "414",
          cls: "",
          xslc: "",
          nh: ""
        }
      ],

      rowIndexBack0: [],
      rowIndexBack1: [],
      rowIndexBack2: [],
      rowIndexBack3: [],
      rowIndexBack4: []
    };
  },
  props: ["parentmsg"],
  watch: {
    parentmsg(newVal) {
      if (newVal == "dlhys") {
        this.startTime();
      } else {
        this.closeTime();
      }
    },
    checkListValue(newVal) {
      console.log("企业经营范围：" + newVal);
    },
    checkListValue1(newVal) {
      console.log("企业经营范围：" + newVal);
    },
    //自动计算运输表总计---平均运距
    hyl301(newVal){
      if(this.hyzzl301 > 0 && newVal>0){
        this.ysqkData[0].pjyj = (this.hyzzl301/newVal).toFixed(1);
      } else {
        this.ysqkData[0].pjyj = "";
      }
    },
    hyzzl301(newVal){
      if(newVal >0 && this.hyl301 > 0){
        this.ysqkData[0].pjyj = (newVal/this.hyl301).toFixed(1);
      } else {
        this.ysqkData[0].pjyj = "";
      }
    },
    //自动计算运输表302
    hyl302(newVal){
      if(this.hwzzl302 > 0 && newVal>0){
        this.ysqkData[1].pjyj = (this.hwzzl302/newVal).toFixed(1);
      }
    },
    hwzzl302(newVal){
      if(newVal >0 && this.hyl302 > 0){
        this.ysqkData[1].pjyj = (newVal/this.hyl302).toFixed(1);
      }
    },
    // pjyj302(newVal){
    //     pjyjFlag = flase;
    //     this.ysqkData[1].hwzzl = this.keepIntegerDecimalFull(newVal*this.hyl302);
    // },
    //自动计算运输表303
    hyl303(newVal){
      if(this.hwzzl303 > 0 && newVal>0){
        this.ysqkData[2].pjyj = ((this.hwzzl303/newVal)== Infinity?'0': (this.hwzzl303/newVal)).toFixed(1);
      }
    },
    hwzzl303(newVal){
      if(newVal >0 && this.hyl303 > 0){
        this.ysqkData[2].pjyj = ((newVal/this.hyl303)== Infinity?'0': (newVal/this.hyl303)).toFixed(1);
      }
    },
    //自动计算运输表304
    hyl304(newVal){
      if(this.hwzzl304 > 0 && newVal>0){
        this.ysqkData[3].pjyj = ((this.hwzzl304/newVal)== Infinity?'0': (this.hwzzl304/newVal)).toFixed(1);
      }
    },
    hwzzl304(newVal){
      if(newVal >0 && this.hyl304 > 0){
        this.ysqkData[3].pjyj = ((newVal/this.hyl304)== Infinity?'0': (newVal/this.hyl304)).toFixed(1);
      }
    },
    //自动计算运输表305
    hyl305(newVal){
      if(this.hwzzl305 > 0 && newVal>0){
        this.ysqkData[5].pjyj = ((this.hwzzl305/newVal)== Infinity?'0': (this.hwzzl305/newVal)).toFixed(1);
      }
    },
    hwzzl305(newVal){
       if(newVal >0 && this.hyl305 > 0){
        this.ysqkData[5].pjyj = ((newVal/this.hyl305)== Infinity?'0': (newVal/this.hyl305)).toFixed(1);
       }
    },
    //自动计算运输表306
    hyl306(newVal){
      if(this.hwzzl306 > 0 && newVal>0){
        this.ysqkData[6].pjyj = ((this.hwzzl306/newVal)== Infinity?'0': (this.hwzzl306/newVal)).toFixed(1);
      }
    },
    hwzzl306(newVal){
      if(newVal >0 && this.hyl306 > 0){
        this.ysqkData[6].pjyj = ((newVal/this.hyl306)== Infinity?'0': (newVal/this.hyl306)).toFixed(1);
      }
    },
    //自动计算运输表307
    hyl307(newVal){
      if(this.hwzzl307 > 0 && newVal>0){
        this.ysqkData[7].pjyj = ((this.hwzzl307/newVal)== Infinity?'0': (this.hwzzl307/newVal)).toFixed(1);
      }
    },
    hwzzl307(newVal){
      if(newVal >0 && this.hyl307 > 0){
        this.ysqkData[7].pjyj = ((newVal/this.hyl307)== Infinity?'0': (newVal/this.hyl307)).toFixed(1);
      }
    },
    //自动计算运输表308
    hyl308(newVal){
      if(this.hwzzl308 > 0 && newVal>0){
        this.ysqkData[8].pjyj = ((this.hwzzl308/newVal)== Infinity?'0': (this.hwzzl308/newVal)).toFixed(1);
      }
    },
    hwzzl308(newVal){
      if(newVal >0 && this.hyl308 > 0){
        this.ysqkData[8].pjyj = ((newVal/this.hyl308)== Infinity?'0': (newVal/this.hyl308)).toFixed(1);
      }
    },
    //自动计算运输表309
    hyl309(newVal){
      if(this.hwzzl309 > 0 && newVal>0){
        this.ysqkData[9].pjyj = ((this.hwzzl309/newVal)== Infinity?'0': (this.hwzzl309/newVal)).toFixed(1);
      }
    },
    hwzzl309(newVal){
      if(newVal >0 && this.hyl309 > 0){
        this.ysqkData[9].pjyj = ((newVal/this.hyl309)== Infinity?'0': (newVal/this.hyl309)).toFixed(1);
      }
    },
    //自动计算运输表310
    hyl310(newVal){
      if(this.hwzzl310 > 0 && newVal>0){
        this.ysqkData[10].pjyj = ((this.hwzzl310/newVal)== Infinity?'0': (this.hwzzl310/newVal)).toFixed(1);
      }
    },
    hwzzl310(newVal){
      if(newVal >0 && this.hyl310 > 0){
        this.ysqkData[10].pjyj = ((newVal/this.hyl310)== Infinity?'0': (newVal/this.hyl310)).toFixed(1);
      }
    },
    //自动计算运输表311
    hyl311(newVal){
        if(this.hwzzl311 > 0 && newVal>0){
            this.ysqkData[11].pjyj = ((this.hwzzl311/newVal)== Infinity?'0': (this.hwzzl311/newVal)).toFixed(1);
        }
    },
    hwzzl311(newVal){
        if(newVal >0 && this.hyl311 > 0){
            this.ysqkData[11].pjyj = ((newVal/this.hyl311)== Infinity ?'0': (newVal/this.hyl311)).toFixed(1);
        }
    },
  },
  methods: {
    getPaddingLeft(ylqkColumn, scope) {
      if (
        ylqkColumn.propName == "zbmc" &&
        (scope.row["code"] == "203" ||
          scope.row["code"] == "204" ||
          scope.row["code"] == "205" ||
          scope.row["code"] == "206" ||
          scope.row["code"] == "303" ||
          scope.row["code"] == "304" ||
          scope.row["code"] == "305" ||
          scope.row["code"] == "306" ||
          scope.row["code"] == "307" ||
          scope.row["code"] == "308" ||
          scope.row["code"] == "309" ||
          scope.row["code"] == "310" ||
          scope.row["code"] == "311" ||
          scope.row["code"] == "404" ||
          scope.row["code"] == "406" ||
          scope.row["code"] == "407" ||
          scope.row["code"] == "410" ||
          scope.row["code"] == "411" ||
          scope.row["code"] == "412" ||
          scope.row["code"] == "413" ||
          scope.row["code"] == "414")
      ) {
        //console.log(scope.row['code']);
        return "paddingleft20";
      }

      //计算总计字段
      if (ylqkColumn.propName == "cls") {
        if (scope.row["code"] == "202") {
          this.cls202 = parseFloat(
            scope.row["cls"] == null || scope.row["cls"] == ""
              ? 0
              : scope.row["cls"]
          );
        } else if (scope.row["code"] == "203") {
          this.cls203 = parseFloat(
            scope.row["cls"] == null || scope.row["cls"] == ""
              ? 0
              : scope.row["cls"]
          );
        } else if (scope.row["code"] == "204") {
          this.cls204 = parseFloat(
            scope.row["cls"] == null || scope.row["cls"] == ""
              ? 0
              : scope.row["cls"]
          );
        } else if (scope.row["code"] == "205") {
          this.cls205 = parseFloat(
            scope.row["cls"] == null || scope.row["cls"] == ""
              ? 0
              : scope.row["cls"]
          );
        } else if (scope.row["code"] == "206") {
          this.cls206 = parseFloat(
            scope.row["cls"] == null || scope.row["cls"] == ""
              ? 0
              : scope.row["cls"]
          );
        }
        this.ylqkData[0].cls =
          this.keepIntegerDecimalFull(this.keepTwoDecimalFull(this.cls202 + this.cls203 + this.cls204 + this.cls205 + this.cls206));
      } else if (ylqkColumn.propName == "bjdw") {
        if (scope.row["code"] == "203") {
          this.bjdw203 = parseFloat(
            scope.row["bjdw"] == null || scope.row["bjdw"] == ""
              ? 0
              : scope.row["bjdw"]
          );
        } else if (scope.row["code"] == "204") {
          this.bjdw204 = parseFloat(
            scope.row["bjdw"] == null || scope.row["bjdw"] == ""
              ? 0
              : scope.row["bjdw"]
          );
        } else if (scope.row["code"] == "205") {
          this.bjdw205 = parseFloat(
            scope.row["bjdw"] == null || scope.row["bjdw"] == ""
              ? 0
              : scope.row["bjdw"]
          );
        } else if (scope.row["code"] == "206") {
          this.bjdw206 = parseFloat(
            scope.row["bjdw"] == null || scope.row["bjdw"] == ""
              ? 0
              : scope.row["bjdw"]
          );
        }
        this.ylqkData[0].bjdw =
          this.keepthreeDecimalFull(this.bjdw203 + this.bjdw204 + this.bjdw205 + this.bjdw206);
      } else if (ylqkColumn.propName == "zzl") {
        if (scope.row["code"] == "202") {
          this.zzl202 = parseFloat(
            scope.row["zzl"] == null || scope.row["zzl"] == ""
              ? 0
              : scope.row["zzl"]
          );
        } else if (scope.row["code"] == "203") {
          this.zzl203 = parseFloat(
            scope.row["zzl"] == null || scope.row["zzl"] == ""
              ? 0
              : scope.row["zzl"]
          );
        } else if (scope.row["code"] == "204") {
          this.zzl204 = parseFloat(
            scope.row["zzl"] == null || scope.row["zzl"] == ""
              ? 0
              : scope.row["zzl"]
          );
        } else if (scope.row["code"] == "205") {
          this.zzl205 = parseFloat(
            scope.row["zzl"] == null || scope.row["zzl"] == ""
              ? 0
              : scope.row["zzl"]
          );
        } else if (scope.row["code"] == "206") {
          this.zzl206 = parseFloat(
            scope.row["zzl"] == null || scope.row["zzl"] == ""
              ? 0
              : scope.row["zzl"]
          );
        }
        // 总质量保留三位小数，集装箱保留两位 modified by qzn 20190720 start
        var ylqkzzl =this.zzl202 + this.zzl203 + this.zzl204 + this.zzl205 + this.zzl206;
        this.ylqkData[0].zzl = this.keepthreeDecimalFull(ylqkzzl);
        // 总质量保留三位小数，集装箱保留两位 modified by qzn 20190720 end
      } else if (ylqkColumn.propName == "jzxxw") {
        if (scope.row["code"] == "203") {
          this.jzxxw203 = parseFloat(
            scope.row["jzxxw"] == null || scope.row["jzxxw"] == ""
              ? 0
              : scope.row["jzxxw"]
          );
        } else if (scope.row["code"] == "204") {
          this.jzxxw204 = parseFloat(
            scope.row["jzxxw"] == null || scope.row["jzxxw"] == ""
              ? 0
              : scope.row["jzxxw"]
          );
        } 
        
        this.ylqkData[0].jzxxw = this.keepTwoDecimalFull(this.jzxxw203 + this.jzxxw204);
      } else if (ylqkColumn.propName == "hyl") {
        if (scope.row["code"] == "302") {
          this.hyl302 = parseFloat(scope.row["hyl"] == "" ? 0 : scope.row["hyl"]);
          //this.ysqkData[1].pjyj = this.keepIntegerDecimalFull(this.hwzzl302/this.hyl302);
        } else if (scope.row["code"] == "303") {
          this.hyl303 = parseFloat(scope.row["hyl"] == "" ? 0 : scope.row["hyl"]);
        } else if (scope.row["code"] == "304") {
          this.hyl304 = parseFloat(scope.row["hyl"] == "" ? 0 : scope.row["hyl"]);
        } else if (scope.row["code"] == "305") {
          this.hyl305 = parseFloat(scope.row["hyl"] == "" ? 0 : scope.row["hyl"]);
        } else if (scope.row["code"] == "306") {
          this.hyl306 = parseInt(scope.row["hyl"] == "" ? 0 : scope.row["hyl"]);
        } else if (scope.row["code"] == "307") {
          this.hyl307 = parseFloat(scope.row["hyl"] == "" ? 0 : scope.row["hyl"]);
        } else if (scope.row["code"] == "308") {
          this.hyl308 = parseFloat(scope.row["hyl"] == "" ? 0 : scope.row["hyl"]);
        } else if (scope.row["code"] == "309") {
          this.hyl309 = parseFloat(scope.row["hyl"] == "" ? 0 : scope.row["hyl"]);
        } else if (scope.row["code"] == "310") {
          this.hyl310 = parseFloat(scope.row["hyl"] == "" ? 0 : scope.row["hyl"]);
        } else if (scope.row["code"] == "311") {
          this.hyl311 = parseFloat(
            scope.row["hyl"] == null || scope.row["hyl"] == ""
              ? 0
              : scope.row["hyl"]
          );
        }
        this.ysqkData[0].hyl =
          this.keepIntegerDecimalFull(this.keepTwoDecimalFull(this.hyl305 +
          this.hyl306 +
          this.hyl307 +
          this.hyl308 +
          this.hyl309 +
          this.hyl310 +
          this.hyl311));
          
          this.hyl301 = this.ysqkData[0].hyl;
      } else if (ylqkColumn.propName == "hwzzl") {
        if (scope.row["code"] == "302") {
          this.hwzzl302 = parseFloat(
            scope.row["hwzzl"] == "" ? 0 : scope.row["hwzzl"]
          );
        } else if (scope.row["code"] == "303") {
          this.hwzzl303 = parseFloat(
            scope.row["hwzzl"] == "" ? 0 : scope.row["hwzzl"]
          );
        } else if (scope.row["code"] == "304") {
          this.hwzzl304 = parseFloat(
            scope.row["hwzzl"] == "" ? 0 : scope.row["hwzzl"]
          );
        } else if (scope.row["code"] == "305") {
          this.hwzzl305 = parseFloat(
            scope.row["hwzzl"] == "" ? 0 : scope.row["hwzzl"]
          );
        } else if (scope.row["code"] == "306") {
          this.hwzzl306 = parseFloat(
            scope.row["hwzzl"] == "" ? 0 : scope.row["hwzzl"]
          );
        } else if (scope.row["code"] == "307") {
          this.hwzzl307 = parseFloat(
            scope.row["hwzzl"] == "" ? 0 : scope.row["hwzzl"]
          );
        } else if (scope.row["code"] == "308") {
          this.hwzzl308 = parseFloat(
            scope.row["hwzzl"] == "" ? 0 : scope.row["hwzzl"]
          );
        } else if (scope.row["code"] == "309") {
          this.hwzzl309 = parseFloat(
            scope.row["hwzzl"] == "" ? 0 : scope.row["hwzzl"]
          );
        } else if (scope.row["code"] == "310") {
          this.hwzzl310 = parseFloat(
            scope.row["hwzzl"] == "" ? 0 : scope.row["hwzzl"]
          );
        } else if (scope.row["code"] == "311") {
          this.hwzzl311 = parseFloat(
            scope.row["hwzzl"] == null || scope.row["hwzzl"] == ""
              ? 0
              : scope.row["hwzzl"]
          );
        }
        this.ysqkData[0].hwzzl =
          this.keepIntegerDecimalFull(this.keepTwoDecimalFull(this.hwzzl305 +
          this.hwzzl306 +
          this.hwzzl307 +
          this.hwzzl308 +
          this.hwzzl309 +
          this.hwzzl310 +
          this.hwzzl311));
          this.hyzzl301 = this.ysqkData[0].hwzzl;
      } else if (ylqkColumn.propName == "pjyj"){
        if (scope.row["code"] == "302") {
           console.log(scope.row["pjyj"]+"------");
           this.pjyj302 = parseFloat(scope.row["pjyj"] == "" ? 0 : scope.row["pjyj"]);
        }
          
      }
      if (ylqkColumn.propName == "cls") {
        if (scope.row["code"] == "409") {
          this.cls409 = parseFloat(
            scope.row["cls"] == null || scope.row["cls"] == ""
              ? 0
              : scope.row["cls"]
          );
          
        } else if (scope.row["code"] == "410") {
          this.cls410 = parseFloat(scope.row["cls"] == null ||scope.row["cls"] == "" ? 0 : scope.row["cls"]);
          console.log(this.cls410+"this.cls410");
        } else if (scope.row["code"] == "411") {
          this.cls411 = parseFloat(scope.row["cls"] == null ||scope.row["cls"] == "" ? 0 : scope.row["cls"]);
        } else if (scope.row["code"] == "412") {
          this.cls412 = parseFloat(scope.row["cls"] == null ||scope.row["cls"] == "" ? 0 : scope.row["cls"]);
        } else if (scope.row["code"] == "413") {
          this.cls413 = parseFloat(scope.row["cls"] == null ||scope.row["cls"] == "" ? 0 : scope.row["cls"]);
        } else if (scope.row["code"] == "414") {
          this.cls414 = parseFloat(
            scope.row["cls"] == null || scope.row["cls"] == ""
              ? 0
              : scope.row["cls"]
          );
        }
        this.nhqkTable[0].cls =
          this.keepIntegerDecimalFull(this.keepTwoDecimalFull(this.cls409 +
          this.cls410 +
          this.cls411 +
          this.cls412 +
          this.cls413 +
          this.cls414));
          
      } else if (ylqkColumn.propName == "xslc") {
        if (scope.row["code"] == "409") {
          this.xslc409 = parseFloat(
            scope.row["xslc"] == null || scope.row["xslc"] == ""
              ? 0
              : scope.row["xslc"]
          );
        } else if (scope.row["code"] == "410") {
          this.xslc410 = parseFloat(
            scope.row["cls"] == null ||scope.row["xslc"] == "" ? 0 : scope.row["xslc"]
          );
        } else if (scope.row["code"] == "411") {
          this.xslc411 = parseFloat(
            scope.row["cls"] == null ||scope.row["xslc"] == "" ? 0 : scope.row["xslc"]
          );
        } else if (scope.row["code"] == "412") {
          this.xslc412 = parseFloat(
            scope.row["cls"] == null ||scope.row["xslc"] == "" ? 0 : scope.row["xslc"]
          );
        } else if (scope.row["code"] == "413") {
          this.xslc413 = parseFloat(
            scope.row["cls"] == null ||scope.row["xslc"] == "" ? 0 : scope.row["xslc"]
          );
        } else if (scope.row["code"] == "414") {
          this.xslc414 = parseFloat(
            scope.row["xslc"] == null || scope.row["xslc"] == ""
              ? 0
              : scope.row["xslc"]
          );
        }
        this.nhqkTable[0].xslc =
          this.keepIntegerDecimalFull(this.keepTwoDecimalFull(this.xslc409 +
          this.xslc410 +
          this.xslc411 +
          this.xslc412 +
          this.xslc413 +
          this.xslc414));
      } else if (ylqkColumn.propName == "nh") {
        if (scope.row["code"] == "409") {
          this.nh409 = parseFloat(
            scope.row["nh"] == null || scope.row["nh"] == ""
              ? 0
              : scope.row["nh"]
          );
        } else if (scope.row["code"] == "410") {
          this.nh410 = parseFloat(
            scope.row["nh"] == null ||scope.row["nh"] == "" ? 0 : scope.row["nh"]
          );
        } else if (scope.row["code"] == "411") {
          this.nh411 = parseFloat(
            scope.row["nh"] == null ||scope.row["nh"] == "" ? 0 : scope.row["nh"]
          );
        } else if (scope.row["code"] == "412") {
          this.nh412 = parseFloat(
            scope.row["nh"] == null ||scope.row["nh"] == "" ? 0 : scope.row["nh"]
          );
        } else if (scope.row["code"] == "413") {
          this.nh413 = parseFloat(
            scope.row["nh"] == null ||scope.row["nh"] == "" ? 0 : scope.row["nh"]
          );
        } else if (scope.row["code"] == "414") {
          this.nh414 = parseFloat(
            scope.row["nh"] == null || scope.row["nh"] == ""
              ? 0
              : scope.row["nh"]
          );
        }
        this.nhqkTable[0].nh =
          (this.keepTwoDecimalFull(this.nh409*1.074122 +
          this.nh410*1.253106 +
          this.nh411*1.33 +
          this.nh412*1.7572 +
          this.nh413*0.1229 +
          this.nh414));
      }
      return "";
    },
    showOpinionPop(val) {
      this.showOpinion = !this.showOpinion;
      this.operation = val;
    },
    approval() {
      this.axios
        .post(
          "http://zxdc.catsic.com:9090/sampling/fill/approve",
          {
            data: {
              recid: this.$route.query.id,
              operation: this.operation,
              log: this.opinionText,
              userName: localStorage.getItem("userName")
            }
          },
          {
            headers: {
              "Content-Type": "application/json",
              mobileHeader:
                '{"sessionId":' + localStorage.getItem("sessionId") + "}"
            }
          }
        )
        .then(
          result => {
            if (result.data.status == "1000") {
              console.log("审批完成");
              this.showOpinion = !this.showOpinion;
            }
          },
          error => {
            console.log(error);
          }
        );
    },
    setRowClass(rowIndexs) {
      for (let i in rowIndexs) {
        let rowIndex = rowIndexs[i];
        let row = eval(rowIndex);
        if (row <= 1) {
          this.rowIndexBack0.push(rowIndex - 1);
        } else if (row <= 8) {
          this.rowIndexBack1.push(rowIndex - 1 - 1);
        } else if (row <= 20) {
          this.rowIndexBack2.push(row - 8 - 1);
        } else if (row <= 27) {
          this.rowIndexBack3.push(row - 20 - 1);
        } else if (row <= 35) {
          this.rowIndexBack4.push(row - 27 - 1);
        }
      }
    },
    tableRowClassName0({ row, rowIndex }) {
      if (this.rowIndexBack0.indexOf(rowIndex) !== -1) {
        return "flag-row";
      }
      return "";
    },
    tableRowClassName1({ row, rowIndex }) {
      if (this.rowIndexBack1.indexOf(rowIndex) !== -1) {
        return "flag-row";
      }
      return "";
    },
    tableRowClassName2({ row, rowIndex }) {
      if (this.rowIndexBack2.indexOf(rowIndex) !== -1) {
        return "flag-row";
      }
      return "";
    },
    tableRowClassName3({ row, rowIndex }) {
      if (this.rowIndexBack3.indexOf(rowIndex) !== -1) {
        return "flag-row";
      }
      return "";
    },
    tableRowClassName4({ row, rowIndex }) {
      if (this.rowIndexBack4.indexOf(rowIndex) !== -1) {
        return "flag-row";
      }
      return "";
    },
    sendMsg() {
      this.$emit("func", this.startTime());
    },
    handleCurrentChange(row, event) {
      console.log(row, event, column, event.currentTarget);
    },
    handleEdit(index, row) {
      console.log(index, row);
    },
    handleDelete(index, row) {
      console.log(index, row);
    },
    getDates() {
      localStorage.setItem("id", this.$route.query.id);
      console.log(this.$route.query.id + "this.$route.query.id");
      this.axios
        .post(
          "http://zxdc.catsic.com:9090/sampling/fill/getyhdetail",
          {
            data: {
              recid: this.$route.query.id
            }
          },
          {
            headers: {
              "Content-Type": "application/json",
              mobileHeader:
                '{"sessionId":' + localStorage.getItem("sessionId") + "}"
            }
          }
        )
        .then(
          result => {
            console.log(result)
            if (result.data.status == "1000") {
              let data = result.data.data.yhDetail;
              //  TDOD ADD QZN 之后服务器上传空串之后删除该处理
              // Object.keys(data).forEach(key=>{
              //   if(data[key]===0.0){
              //      data[key]="";
              //   }
              // })
               console.log('填报信息返回-->>'+JSON.stringify(result))
              // 
              //1:业户基本情况
              //this.yhjbqkData[0].value =  data.yhdcb2019080;//this.getCityName
              this.countyCode = data.yhdcb2019080;
              //this.yhjbqkData[1].value =
              //  data.yhdcb2019081 == 1 ? "企业" : "个体户";
              if(data.yhdcb2019081 == "1"){
                  this.yhjbqkData[1].value = "企业";
              } else if(data.yhdcb2019081 == "175"){
                  this.yhjbqkData[1].value = "个体户";
              } else {
                 this.yhjbqkData[1].value = "";
              }
              this.yhjbqkData[2].value = this.getQyTypeName(data.yhdcb2019082);
              this.yhjbqkData[3].value = data.yhdcb2019083 == 1 ? "是" : "否";
              if(data.yhdcb2019081 == 175){
                    this.yhjbqkData[3].value = "";
              }
              
              this.yhjbqkData[4].value = data.yhdcb2019084==undefined?"":data.yhdcb2019084;
              this.yhjbqkData[5].value = data.yhdcb2019085==undefined?"":data.yhdcb2019085;
              this.yhjbqkData[6].value = data.yhdcb2019086==undefined?"":data.yhdcb2019086
              this.yhjbqkData[7].value = data.yhdcb2019094 == 1 ? "是" : "否";
              
              if (data.yhdcb2019081 == 1 && data.yhdcb2019117 != undefined) {
                console.log(data.yhdcb2019117 + "data.yhdcb2019117");
                if (data.yhdcb2019117.indexOf(";") >= 0) {
                  let list = data.yhdcb2019117.split(";");
                  let str = "";
                  for (let i = 0; i < list.length; i++) {
                    str += this.getYwTypeName(list[i]) + ";";
                  }
                  this.yhjbqkData[8].value = str;
                } else {
                  if (data.yhdcb2019117 != "" && data.yhdcb2019117 != "0") {
                    this.yhjbqkData[8].value = this.getYwTypeName(
                      data.yhdcb2019117
                    ); //企业经营范围
                  }
                }
                this.qyjyfwCode = data.yhdcb2019117;
              } else if (
                data.yhdcb2019081 == 175 &&
                data.yhdcb2019087 != undefined
              ) {
                
                if(localStorage.getItem("selectInfo") == ""){
                      if (data.yhdcb2019087.indexOf(";") >= 0) {
                    let list = data.yhdcb2019087.split(";");
                    let str = "";
                    for (let i = 0; i < list.length; i++) {
                      str += this.getGtjyfwNameNew(list[i]) + ";";
                    }
                    this.yhjbqkData[8].value = str;
                  } else {
                    if (data.yhdcb2019087 != "" && data.yhdcb2019087 != "0") {
                      this.yhjbqkData[8].value = this.getGtjyfwNameNew(
                        data.yhdcb2019087
                      ); //企业经营范围
                    }
                  }
                  this.qyjyfwCode1 = data.yhdcb2019087;
                } else {
                    this.yhjbqkData[8].value = localStorage.getItem("selectInfo");
                    this.qyjyfwCode1 = localStorage.getItem("selectInfoCode");
                }
                console.log("jinlaile-----***-----");
                //this.yhjbqkData[8].value = str;
              }

              if(data.yhdcb2019088 == undefined || data.yhdcb2019088 == "undefined"){
                  this.yhjbqkData[9].value = "";
              } else {
                this.yhjbqkData[9].value = this.getzyjtysywlbName(data.yhdcb2019088);
              }
              if(this.yhjbqkData[7].value == "否"){//主营交通运输为否时，主营交通运输业务类别为空
                  this.yhjbqkData[9].value = "";
              }
              if(data.yhdcb2019081 == 175){
                    this.yhjbqkData[7].value = "";
              }
              this.yhjbqkData[10].value = data.yhdcb2019089 == 1 ? "是" : "否";
              if(data.yhdcb2019081 == 175){
                    this.yhjbqkData[10].value = "";
              }
              this.yhjbqkData[11].value = this.getLsgxName(data.yhdcb2019090);
              if(this.yhjbqkData[10].value == "否"){
                  this.yhjbqkData[11].value = "";
              }
              this.yhjbqkData[12].value = data.yhdcb2019091==undefined?"":data.yhdcb2019091;//直接上级公司名称

              // this.yhjbqkData[13].value = data.yhdcb2019099==undefined?"":data.yhdcb2019099; //单位负责人
              // this.yhjbqkData[14].value = data.yhdcb2019100==undefined?"":data.yhdcb2019100; //统计负责人

              // this.yhjbqkData[15].value = data.yhdcb2019101==undefined?"":data.yhdcb2019101;//填表人
              // this.yhjbqkData[16].value = data.yhdcb2019102==undefined?"":data.yhdcb2019102;//填表人联系电话

              this.yhjbqkData[13].value = data.yhdcb2019092==undefined?"":data.yhdcb2019092;//联系人
              this.yhjbqkData[14].value = data.yhdcb2019093==undefined?"":data.yhdcb2019093;//联系电话


              this.yhdcb2019103 = data.yhdcb2019103==undefined?"":data.yhdcb2019103.replace('/', '-').replace('/', '-');
              //2:运力情况
              //总计
              this.ylqkData[0].cls = data.yhdcb2019001==undefined?"":data.yhdcb2019001;
              // console.log('------>>>'+data.yhdcb2019010)
              this.ylqkData[0].bjdw = this.keepthreeDecimalFull(data.yhdcb2019010);
              this.ylqkData[0].zzl = this.keepthreeDecimalFull(data.yhdcb2019014);
              this.ylqkData[0].jzxxw = data.yhdcb2019017==undefined?"":data.yhdcb2019017;
              //其中：牵引车
              this.ylqkData[2].cls = data.yhdcb2019002==undefined?"":data.yhdcb2019002;
              this.ylqkData[2].bjdw = "-";
              this.ylqkData[2].zzl = this.keepthreeDecimalFull(data.yhdcb2019104);
              this.ylqkData[2].jzxxw = "-";
              //挂车
              this.ylqkData[3].cls = data.yhdcb2019003==undefined?"":data.yhdcb2019003;
              this.ylqkData[3].bjdw = this.keepthreeDecimalFull(data.yhdcb2019011);
              this.ylqkData[3].zzl = this.keepthreeDecimalFull(data.yhdcb2019105);
              this.ylqkData[3].jzxxw = this.keepTwoDecimalFull(data.yhdcb2019018);
              //集装箱车
              this.ylqkData[4].cls = data.yhdcb2019004==undefined?"":data.yhdcb2019004;
              this.ylqkData[4].bjdw = this.keepthreeDecimalFull(data.yhdcb2019012);
              this.ylqkData[4].zzl = this.keepthreeDecimalFull(data.yhdcb2019015);
              this.ylqkData[4].jzxxw = this.keepTwoDecimalFull(data.yhdcb2019019);
              //冷藏保温车
              this.ylqkData[5].cls = data.yhdcb2019005==undefined?"":data.yhdcb2019005;
              this.ylqkData[5].bjdw = this.keepthreeDecimalFull(data.yhdcb2019013);
              this.ylqkData[5].zzl = this.keepthreeDecimalFull(data.yhdcb2019016);
              this.ylqkData[5].jzxxw = "-";
              //其他
              this.ylqkData[6].cls = data.yhdcb2019106==undefined?"":data.yhdcb2019106;
              this.ylqkData[6].bjdw = this.keepthreeDecimalFull(data.yhdcb2019107);
              this.ylqkData[6].zzl = this.keepthreeDecimalFull(data.yhdcb2019108);
              //this.ylqkData[6].jzxxw = data.yhdcb2019109;
              this.ylqkData[6].jzxxw = "-";
              // this.ylqkData[6].cls = "-";
              // this.ylqkData[6].bjdw = "-";
              // this.ylqkData[6].zzl = "-";
              // this.ylqkData[6].jzxxw = "-";
              //3:运输情况
              //总计
              this.ysqkData[0].tcs = data.yHDCB2019051 == undefined?"":this.keepIntegerDecimalFull(data.yHDCB2019051);
              this.ysqkData[0].hyl = data.yhdcb2019020 == undefined?"":this.keepIntegerDecimalFull(data.yhdcb2019020);
              this.ysqkData[0].hwzzl = data.yhdcb2019030 == undefined?"":this.keepIntegerDecimalFull(data.yhdcb2019030);
              this.ysqkData[0].pjyj = data.yHDCB2019055 == undefined?"":this.keepIntegerDecimalFull(data.yHDCB2019055);
              //其中：集装箱
              this.ysqkData[1].tcs = data.yHDCB2019052 == undefined?"":this.keepIntegerDecimalFull(data.yHDCB2019052);
              this.ysqkData[1].hyl = data.yhdcb2019021 == undefined?"":this.keepIntegerDecimalFull(data.yhdcb2019021);
              this.ysqkData[1].hwzzl = data.yhdcb2019031 == undefined?"":this.keepIntegerDecimalFull(data.yhdcb2019031);
              this.ysqkData[1].pjyj = data.yHDCB2019056 == undefined?"":this.keepIntegerDecimalFull(data.yHDCB2019056);
              //冷藏保温品
              this.ysqkData[2].tcs = data.yHDCB2019053 == undefined?"":this.keepIntegerDecimalFull(data.yHDCB2019053);
              this.ysqkData[2].hyl = data.yhdcb2019022 == undefined?"":this.keepIntegerDecimalFull(data.yhdcb2019022);
              this.ysqkData[2].hwzzl = data.yhdcb2019032 == undefined?"":this.keepIntegerDecimalFull(data.yhdcb2019032);
              this.ysqkData[2].pjyj = data.yHDCB2019057 == undefined?"":this.keepIntegerDecimalFull(data.yHDCB2019057);
              //危险货物
              this.ysqkData[3].tcs = data.yHDCB2019054 == undefined?"":this.keepIntegerDecimalFull(data.yHDCB2019054);
              this.ysqkData[3].hyl = data.yhdcb2019023 == undefined?"":this.keepIntegerDecimalFull(data.yhdcb2019023);
              this.ysqkData[3].hwzzl = data.yhdcb2019033 == undefined?"":this.keepIntegerDecimalFull(data.yhdcb2019033);
              this.ysqkData[3].pjyj = data.yHDCB2019058 == undefined?"":this.keepIntegerDecimalFull(data.yHDCB2019058);
              //其中：煤炭及制品
              this.ysqkData[5].tcs = "-";
              this.ysqkData[5].hyl = data.yhdcb2019024 == undefined?"":this.keepIntegerDecimalFull(data.yhdcb2019024);
              this.ysqkData[5].hwzzl = data.yhdcb2019034 == undefined?"":this.keepIntegerDecimalFull(data.yhdcb2019034);
              this.ysqkData[5].pjyj = data.yHDCB2019059 == undefined?"":this.keepIntegerDecimalFull(data.yHDCB2019059);
              //金属矿石
              this.ysqkData[6].tcs = "-";
              this.ysqkData[6].hyl = data.yhdcb2019025 == undefined?"":this.keepIntegerDecimalFull(data.yhdcb2019025);
              this.ysqkData[6].hwzzl = data.yhdcb2019035 == undefined?"":this.keepIntegerDecimalFull(data.yhdcb2019035);
              this.ysqkData[6].pjyj = data.yHDCB2019060 == undefined?"":this.keepIntegerDecimalFull(data.yHDCB2019060);
              //矿建材料及水泥
              this.ysqkData[7].tcs = "-";
              this.ysqkData[7].hyl = data.yhdcb2019026 == undefined?"":this.keepIntegerDecimalFull(data.yhdcb2019026);
              this.ysqkData[7].hwzzl = data.yhdcb2019036 == undefined?"":this.keepIntegerDecimalFull(data.yhdcb2019036);
              this.ysqkData[7].pjyj = data.yHDCB2019061 == undefined?"":this.keepIntegerDecimalFull(data.yHDCB2019061);
              //机械设备电器
              this.ysqkData[8].tcs = "-";
              this.ysqkData[8].hyl = data.yhdcb2019027 == undefined?"":this.keepIntegerDecimalFull(data.yhdcb2019027);
              this.ysqkData[8].hwzzl = data.yhdcb2019037 == undefined?"":this.keepIntegerDecimalFull(data.yhdcb2019037);
              this.ysqkData[8].pjyj = data.yHDCB2019062 == undefined?"":this.keepIntegerDecimalFull(data.yHDCB2019062);
              //轻工医药产品
              this.ysqkData[9].tcs = "-";
              this.ysqkData[9].hyl = data.yhdcb2019028 == undefined?"":this.keepIntegerDecimalFull(data.yhdcb2019028);
              this.ysqkData[9].hwzzl = data.yhdcb2019038 == undefined?"":this.keepIntegerDecimalFull(data.yhdcb2019038);
              this.ysqkData[9].pjyj = data.yHDCB2019063 == undefined?"":this.keepIntegerDecimalFull(data.yHDCB2019063);
              //鲜活农产品
              this.ysqkData[10].tcs = "-";
              this.ysqkData[10].hyl = data.yhdcb2019029 == undefined?"":this.keepIntegerDecimalFull(data.yhdcb2019029);
              this.ysqkData[10].hwzzl = data.yhdcb2019039 == undefined?"":this.keepIntegerDecimalFull(data.yhdcb2019039);
              this.ysqkData[10].pjyj = data.yHDCB2019064 == undefined?"":this.keepIntegerDecimalFull(data.yHDCB2019064);
              //其他
              this.ysqkData[11].tcs = "-";
              this.ysqkData[11].hyl = data.yhdcb2019110 == undefined?"":this.keepIntegerDecimalFull(data.yhdcb2019110);
              this.ysqkData[11].hwzzl = data.yhdcb2019111 == undefined?"":this.keepIntegerDecimalFull(data.yhdcb2019111);
              this.ysqkData[11].pjyj = data.yhdcb2019112 == undefined?"":this.keepIntegerDecimalFull(data.yhdcb2019112);
              // this.ysqkData[11].hyl = "-";
              // this.ysqkData[11].hwzzl = "-";
              // this.ysqkData[11].pjyj = "-";

              //4.财务状况
              //资产总计：
              this.cwqkTable[0].sl =data.yhdcb2019044== undefined?"": data.yhdcb2019044;
              //负债合计
              this.cwqkTable[1].sl = data.yhdcb2019045== undefined?"": data.yhdcb2019045;
              //营业收入
              this.cwqkTable[2].sl = data.yhdcb2019046== undefined?"":data.yhdcb2019046 ;
              //其中：运输收入
              this.cwqkTable[3].sl = data.yhdcb2019047== undefined?"":data.yhdcb2019047 ;
              //营业成本
              this.cwqkTable[4].sl = data.yhdcb2019048== undefined?"":data.yhdcb2019048 ;
              //其中：营业收入
              this.cwqkTable[5].sl = data.yhdcb2019049== undefined?"": data.yhdcb2019049;
              //营业利润
              this.cwqkTable[6].sl = data.yhdcb2019050== undefined?"": data.yhdcb2019050;

              if(this.yhjbqkData[3].value == "否"){
                  this.cwqkTable[0].sl = "-";              
                  this.cwqkTable[1].sl = "-";              
                  this.cwqkTable[2].sl = "-";              
                  this.cwqkTable[3].sl = "-";             
                  this.cwqkTable[4].sl = "-";              
                  this.cwqkTable[5].sl = "-";              
                  this.cwqkTable[6].sl = "-";
              }
              if(data.yhdcb2019081 == "175"){
                  this.cwqkTable[0].sl = "-";              
                  this.cwqkTable[1].sl = "-";
                  this.cwqkTable[6].sl = "-";
              }

              //5.能耗情况
              //总计
              this.nhqkTable[0].cls = data.YHDCB2019077==undefined?"":data.YHDCB2019077;
              this.nhqkTable[0].xslc = data.YHDCB2019065==undefined?"":data.YHDCB2019065;
              this.nhqkTable[0].nh = data.yHDCB2019071==undefined?"":data.yHDCB2019071;
              //其中：汽油车
              this.nhqkTable[2].cls = data.yhdcb2019006==undefined?"":data.yhdcb2019006;
              this.nhqkTable[2].xslc = data.yHDCB2019066==undefined?"":data.yHDCB2019066;
              this.nhqkTable[2].nh = data.yHDCB2019072==undefined?"":data.yHDCB2019072;
              //柴油车
              this.nhqkTable[3].cls = data.yhdcb2019007==undefined?"":data.yhdcb2019007;
              this.nhqkTable[3].xslc = data.yHDCB2019067==undefined?"":data.yHDCB2019067;
              this.nhqkTable[3].nh = data.yHDCB2019073==undefined?"":data.yHDCB2019073;
              //压缩天然气车
              this.nhqkTable[4].cls = data.yhdcb2019008==undefined?"":data.yhdcb2019008;
              this.nhqkTable[4].xslc = data.yHDCB2019068==undefined?"":data.yHDCB2019068;
              this.nhqkTable[4].nh = data.yHDCB2019074==undefined?"":data.yHDCB2019074;
              //液化天然气车
              this.nhqkTable[5].cls = data.yHDCB2019078==undefined?"":data.yHDCB2019078;
              this.nhqkTable[5].xslc = data.yHDCB2019069==undefined?"":data.yHDCB2019069;
              this.nhqkTable[5].nh = data.yHDCB2019075==undefined?"":data.yHDCB2019075;
              //纯电动
              this.nhqkTable[6].cls = data.yhdcb2019009==undefined?"":data.yhdcb2019009;
              this.nhqkTable[6].xslc = data.yHDCB2019070==undefined?"":data.yHDCB2019070;
              this.nhqkTable[6].nh = data.yHDCB2019076==undefined?"":data.yHDCB2019076;
              //其他
              this.nhqkTable[7].cls = data.yhdcb2019113==undefined?"":data.yhdcb2019113;
              this.nhqkTable[7].xslc = data.yhdcb2019114==undefined?"":data.yhdcb2019114;
              this.nhqkTable[7].nh = data.yhdcb2019115==undefined?"":data.yhdcb2019115;
              // this.nhqkTable[7].cls = "-";
              // this.nhqkTable[7].xslc = "-";
              // this.nhqkTable[7].nh = "-";

              this.dlhyData.recid = data.recid;
              this.dlhyData.floatorder = data.floatorder;

              this.yhdcb2019095 = this.getAreaName(data.yhdcb2019095);
              this.yhdcb2019098 = data.yhdcb2019098==undefined?"":data.yhdcb2019098;
              this.yhdcb2019079 = data.yHDCB2019079==undefined?"":data.yHDCB2019079;
              this.yhdcb2019097 = data.yhdcb2019097==undefined?"":data.yhdcb2019097;
              this.yhdcb2019116 = data.yhdcb2019116==undefined?"":data.yhdcb2019116;

              // this.yhjbqkData[13].value = data.yhdcb2019099==undefined?"":data.yhdcb2019099; 
              // this.yhjbqkData[14].value = data.yhdcb2019100==undefined?"":data.yhdcb2019100; 

              // this.yhjbqkData[15].value = data.yhdcb2019101==undefined?"":data.yhdcb2019101;
              // this.yhjbqkData[16].value = data.yhdcb2019102==undefined?"":data.yhdcb2019102;
              this.yhdcb2019099 = data.yhdcb2019099==undefined?"":data.yhdcb2019099;//单位负责人
              this.yhdcb2019100 = data.yhdcb2019100==undefined?"":data.yhdcb2019100;//统计负责人
              this.yhdcb2019101 = data.yhdcb2019101==undefined?"":data.yhdcb2019101;//填表人
              this.yhdcb2019102 = data.yhdcb2019102==undefined?"":data.yhdcb2019102;//填表人联系电话

              saveToast = false;
              this.saveData();
              // localStorage.setItem(this.dlhyData.recid + 'ylqkData', JSON.stringify(this.ylqkData));
              // localStorage.setItem(this.dlhyData.recid + 'ysqkData', JSON.stringify(this.ysqkData));
              // localStorage.setItem(this.dlhyData.recid + 'cwqkTable', JSON.stringify(this.cwqkTable));
              // localStorage.setItem(this.dlhyData.recid + 'nhqkTable', JSON.stringify(this.nhqkTable));
              this.getCityData(data.yhdcb2019080);
            } else if (
              result.data.status == "4001" ||
              result.data.status == "5005" ||
              result.data.status == "1002"
            ) {
              this.dateFlag = true;
              this.sessionId = "";
              localStorage.setItem("sessionId", JSON.stringify(this.sessionId));
              this.$store.commit("outLogin");
              this.msg = result.data.msg;
              Toast(this.msg);
              this.$router.push({
                path: "/login"
              });
            } else if (result.data.status == 1001) {
              Toast(result.data.msg);
            }
          },
          error => {
            console.log("getyhdetail request error:" + error);
          }
        );

      // if (JSON.parse(localStorage.getItem(this.$route.query.id+'ylqkData')) === null) {
      //     console.log(null);
      // } else {
      //     this.ylqkData = JSON.parse(localStorage.getItem(this.$route.query.id+'ylqkData'));
      // }
      // if (JSON.parse(localStorage.getItem(this.$route.query.id+'ysqkData')) === null) {
      //     console.log(null);
      // } else {
      //     this.ysqkData = JSON.parse(localStorage.getItem(this.$route.query.id+'ysqkData'));
      // }
      // if (JSON.parse(localStorage.getItem('cwqkTable')) === null) {
      //     console.log(null);
      // } else {
      //     this.cwqkTable = JSON.parse(localStorage.getItem('cwqkTable'));
      // }
      // if (JSON.parse(localStorage.getItem('nhqkTable')) === null) {
      //     console.log(null);
      // } else {
      //     this.nhqkTable = JSON.parse(localStorage.getItem('nhqkTable'));
      // }
    },
    saveData() {
      let data = {};
      data.recid = this.dlhyData.recid;
      data.dlhyDetil = this.refreshData();
      // data.yhmlk = "";
      // console.log("保存发送参数："+JSON.stringify(data));
      this.axios
        .post(
          "http://zxdc.catsic.com:9090/sampling/fill/saveyh",
          { data: data },
          {
            headers: {
              "Content-Type": "application/json",
              mobileHeader:
                '{"sessionId":' + localStorage.getItem("sessionId") + "}"
            }
          }
        )
        .then(
          result => {
            console.log(result);
            if (result.data.status == "1000") {
              localStorage.setItem("savesuccess", true);
              if (saveToast) {
                Toast({
                  message: "保存成功"
                });
              }
              saveToast = true;
              localStorage.setItem("ylqkData", JSON.stringify(this.ylqkData));
              localStorage.setItem("ysqkData", JSON.stringify(this.ysqkData));
              localStorage.setItem("cwqkTable", JSON.stringify(this.cwqkTable));
              localStorage.setItem("nhqkTable", JSON.stringify(this.nhqkTable));
              // 用户基本情况 add by qzn 20190722 start
              localStorage.setItem("yhjbqkData", JSON.stringify(this.yhjbqkData));
              // 用户基本情况 add by qzn 20190722 end

              // 保存 2019079 2019095 2019097 2019098  add by qzn start
              var bczl = {};
              bczl.bczl2jzxxyl = this.yhdcb2019079;
              bczl.bczl1zyqy = this.yhdcb2019095;
              bczl.bczl1tczb = this.yhdcb2019098;
              bczl.bczl3qtrllx = this.yhdcb2019097;
              bczl.bczl3qtjtdhwmc = this.yhdcb2019116;
              bczl.bcrq = this.yhdcb2019103;

              bczl.dwfzr = this.yhdcb2019099;
              bczl.tjfzr = this.yhdcb2019100;
              bczl.tbr = this.yhdcb2019101;
              bczl.tbrlxdh = this.yhdcb2019102;

              localStorage.setItem("bczl", JSON.stringify(bczl));
              // 保存 2019079 2019095 2019097 2019098  add by qzn end
            } else if (result.data.status === "1001") {
              Toast(result.data.msg);
            } else if (
              result.data.status == "4001" ||
              result.data.status == "5005" ||
              result.data.status == "1002"
            ) {
              Indicator.close();
              this.dateFlag = true;
              this.sessionId = "";
              localStorage.setItem("sessionId", JSON.stringify(this.sessionId));
              this.$store.commit("outLogin");
              this.msg = result.data.msg;
              Toast(this.msg);
              this.$router.push({
                path: "/login"
              });
            } else if (result.data.status === "5001") {
              Toast(result.data.msg);
            }
          },
          error => {
            Toast("网络异常");
            console.log("getuserinfo request error:" + error);
          }
        );
    },
    startTime() {
      // this.$store.state.intervalId = setInterval(() => {
      // localStorage.setItem('ylqkData', JSON.stringify(this.ylqkData));
      // localStorage.setItem('ysqkData', JSON.stringify(this.ysqkData));
      // localStorage.setItem('cwqkTable', JSON.stringify(this.cwqkTable));
      // localStorage.setItem('nhqkTable', JSON.stringify(this.nhqkTable));
      //
      // }, 5000)
      console.log("dlhySuccess");
    },
    closeTime() {
      console.log("dlhycloseTime");

      // clearInterval(this.$store.state.intervalId);
    },
    refreshData() {
      let dlhyDetil = [];
      let dlhy = {};
      //业户基本情况
      //行政区划
      dlhy.yhdcb2019080 = this.countyCode == "" ? "" : this.countyCode;
      //业户类型
      // dlhy.yhdcb2019081 =
      //   this.yhjbqkData[1].value == undefined || this.yhjbqkData[1].value == ""
      //     ? ""
      //     : this.yhjbqkData[1].value == "企业"
      //     ? "1"
      //     : "175";
      if(this.yhjbqkData[1].value == "企业"){
          dlhy.yhdcb2019081 = "1";
      } else if(this.yhjbqkData[1].value == "个体户"){
          dlhy.yhdcb2019081 = "175";
      } else {
         dlhy.yhdcb2019081 = "";
      }
        
      //企业登录注册类型
      dlhy.yhdcb2019082 =
        this.yhjbqkData[2].value == undefined || this.yhjbqkData[2].value == ""
          ? ""
          : this.getQyTypeCode(this.yhjbqkData[2].value);
      //是否法人单位
      dlhy.yhdcb2019083 =
        this.yhjbqkData[3].value == undefined || this.yhjbqkData[3].value == ""
          ? ""
          : this.yhjbqkData[3].value == "是"
          ? "1"
          : "2";
      if(this.yhjbqkData[1].value == "企业"){
            dlhy.yhdcb2019084 =
          this.yhjbqkData[4].value == undefined || this.yhjbqkData[4].value == ""
            ? ""
            : this.yhjbqkData[4].value;
        dlhy.yhdcb2019085 =
          this.yhjbqkData[5].value == undefined || this.yhjbqkData[5].value == ""
            ? ""
            : this.yhjbqkData[5].value;
      } else {
        dlhy.yhdcb2019084 = "";
        dlhy.yhdcb2019085 = "";
      }
      dlhy.yhdcb2019086 =
        this.yhjbqkData[6].value == undefined || this.yhjbqkData[6].value == ""
          ? ""
          : this.yhjbqkData[6].value;
      //是否主营交通运输
      dlhy.yhdcb2019094 =
        this.yhjbqkData[7].value == undefined || this.yhjbqkData[7].value == ""
          ? ""
          : this.yhjbqkData[7].value == "是"
          ? "1"
          : "2";
      //企业经营范围
      if (this.yhjbqkData[1].value == "企业") {
        //dlhy.yhdcb2019117 = this.yhjbqkData[8].value == undefined || this.yhjbqkData[8].value == "" ? "0" : this.yhjbqkData[8].value;
        dlhy.yhdcb2019117 = this.qyjyfwCode;
      }
      //个体经营范围
      if (this.yhjbqkData[1].value == "个体户") {
        ///dlhy.yhdcb2019087 = this.yhjbqkData[8].value == undefined || this.yhjbqkData[8].value == "" ? "0" : this.yhjbqkData[8].value;
        dlhy.yhdcb2019087 = this.qyjyfwCode1;
      }
      //主营交通运输业务类别
      dlhy.yhdcb2019088 =
        this.yhjbqkData[9].value == undefined || this.yhjbqkData[9].value == ""
          ? ""
          : this.getzyjtysywlbCode(this.yhjbqkData[9].value);
      //是否隶属于企业集团
      dlhy.yhdcb2019089 =
        this.yhjbqkData[10].value == undefined ||
        this.yhjbqkData[10].value == ""
          ? ""
          : this.yhjbqkData[10].value == "是"
          ? "1"
          : "2";
      //企业隶属关系
      dlhy.yhdcb2019090 =
        this.yhjbqkData[11].value == undefined ||
        this.yhjbqkData[11].value == ""
          ? ""
          : this.getLsgxCode(this.yhjbqkData[11].value);
      dlhy.yhdcb2019091 =
        this.yhjbqkData[12].value == undefined ||
        this.yhjbqkData[12].value == ""
          ? ""
          : this.yhjbqkData[12].value;

      // dlhy.yhdcb2019099 =
      //   this.yhjbqkData[13].value == undefined ||
      //   this.yhjbqkData[13].value == ""
      //     ? ""
      //     : this.yhjbqkData[13].value;
      // dlhy.yhdcb2019100 =
      //   this.yhjbqkData[14].value == undefined ||
      //   this.yhjbqkData[14].value == ""
      //     ? ""
      //     : this.yhjbqkData[14].value;

      // dlhy.yhdcb2019101 =
      //   this.yhjbqkData[15].value == undefined ||
      //   this.yhjbqkData[15].value == ""
      //     ? ""
      //     : this.yhjbqkData[15].value;
      // dlhy.yhdcb2019102 =
      //   this.yhjbqkData[16].value == undefined ||
      //   this.yhjbqkData[16].value == ""
      //     ? ""
      //     : this.yhjbqkData[16].value;
      
      dlhy.yhdcb2019092 =
        this.yhjbqkData[13].value == undefined ||
        this.yhjbqkData[13].value == ""
          ? ""
          : this.yhjbqkData[13].value;
      dlhy.yhdcb2019093 =
        this.yhjbqkData[14].value == undefined ||
        this.yhjbqkData[14].value == ""
          ? ""
          : this.yhjbqkData[14].value;
      //总计
      dlhy.yhdcb2019001 =
        this.ylqkData[0].cls == undefined || this.ylqkData[0].cls == ""
          ? ""
          : this.ylqkData[0].cls;
      dlhy.yhdcb2019010 =
        this.ylqkData[0].bjdw == undefined || this.ylqkData[0].bjdw == ""
          ? ""
          : this.ylqkData[0].bjdw;
      dlhy.yhdcb2019014 =
        this.ylqkData[0].zzl == undefined || this.ylqkData[0].zzl == ""
          ? ""
          : this.ylqkData[0].zzl;
      dlhy.yhdcb2019017 =
        this.ylqkData[0].jzxxw == undefined || this.ylqkData[0].jzxxw == ""
          ? ""
        //   : this.ylqkData[0].jzxxw;
        :this.ylqkData[0].jzxxw;

      // this.ylqkData[0].jzxxw = "";
      //其中：牵引车
      dlhy.yhdcb2019002 =
        this.ylqkData[2].cls == undefined || this.ylqkData[2].cls == ""
          ? ""
          : this.ylqkData[2].cls;
      dlhy.yhdcb2019104 =
        this.ylqkData[2].zzl == undefined || this.ylqkData[2].zzl == ""
          ? ""
          : this.ylqkData[2].zzl;
      // this.ylqkData[1].bjdw = "";
      // this.ylqkData[1].zzl = "";
      // this.ylqkData[1].jzxxw = "";
      //挂车
      dlhy.yhdcb2019003 =
        this.ylqkData[3].cls == undefined || this.ylqkData[3].cls == ""
          ? ""
          : this.ylqkData[3].cls;
      dlhy.yhdcb2019011 =
        this.ylqkData[3].bjdw == undefined || this.ylqkData[3].bjdw == ""
          ? ""
          : this.ylqkData[3].bjdw;
      dlhy.yhdcb2019105 =
        this.ylqkData[3].zzl == undefined || this.ylqkData[3].zzl == ""
          ? ""
          : this.ylqkData[3].zzl;
      dlhy.yhdcb2019018 =
        this.ylqkData[3].jzxxw == undefined || this.ylqkData[3].jzxxw == ""
          ? ""
          : this.ylqkData[3].jzxxw;
      // this.ylqkData[2].jzxxw = "";
      //集装箱车
      dlhy.yhdcb2019004 =
        this.ylqkData[4].cls == undefined || this.ylqkData[4].cls == ""
          ? ""
          : this.ylqkData[4].cls;
      dlhy.yhdcb2019012 =
        this.ylqkData[4].bjdw == undefined || this.ylqkData[4].bjdw == ""
          ? ""
          : this.ylqkData[4].bjdw;
      dlhy.yhdcb2019015 =
        this.ylqkData[4].zzl == undefined || this.ylqkData[4].zzl == ""
          ? ""
          : this.ylqkData[4].zzl;
      dlhy.yhdcb2019019 =
        this.ylqkData[4].jzxxw == undefined || this.ylqkData[4].jzxxw == ""
          ? ""
          : this.ylqkData[4].jzxxw;
      //冷藏保温车
      dlhy.yhdcb2019005 =
        this.ylqkData[5].cls == undefined || this.ylqkData[5].cls == ""
          ? ""
          : this.ylqkData[5].cls;
      dlhy.yhdcb2019013 =
        this.ylqkData[5].bjdw == undefined || this.ylqkData[5].bjdw == ""
          ? ""
          : this.ylqkData[5].bjdw;
      dlhy.yhdcb2019016 =
        this.ylqkData[5].zzl == undefined || this.ylqkData[5].zzl == ""
          ? ""
          : this.ylqkData[5].zzl;
      // this.ylqkData[4].jzxxw = "";
      //其他
      dlhy.yhdcb2019106 =
        this.ylqkData[6].cls == undefined || this.ylqkData[6].cls == ""
          ? ""
          : this.ylqkData[6].cls;
      dlhy.yhdcb2019107 =
        this.ylqkData[6].bjdw == undefined || this.ylqkData[6].bjdw == ""
          ? ""
          : this.ylqkData[6].bjdw;
      dlhy.yhdcb2019108 =
        this.ylqkData[6].zzl == undefined || this.ylqkData[6].zzl == ""
          ? ""
          : this.ylqkData[6].zzl;
      dlhy.yhdcb2019109 =
        this.ylqkData[6].jzxxw == undefined || this.ylqkData[6].jzxxw == ""
          ? ""
          : this.ylqkData[6].jzxxw;
      //总计
      dlhy.YHDCB2019051 =
        this.ysqkData[0].tcs == undefined || this.ysqkData[0].tcs == ""
          ? ""
          : this.ysqkData[0].tcs;
      dlhy.yhdcb2019020 =
        this.ysqkData[0].hyl == undefined || this.ysqkData[0].hyl == ""
          ? ""
          : this.ysqkData[0].hyl;
      dlhy.yhdcb2019030 =
        this.ysqkData[0].hwzzl == undefined || this.ysqkData[0].hwzzl == ""
          ? ""
          : this.ysqkData[0].hwzzl;
      dlhy.YHDCB2019055 =
        this.ysqkData[0].pjyj == undefined || this.ysqkData[0].pjyj == ""
          ? ""
          : this.ysqkData[0].pjyj;
      //其中：集装箱
      dlhy.YHDCB2019052 =
        this.ysqkData[1].tcs == undefined || this.ysqkData[1].tcs == ""
          ? ""
          : this.ysqkData[1].tcs;
      dlhy.yhdcb2019021 =
        this.ysqkData[1].hyl == undefined || this.ysqkData[1].hyl == ""
          ? ""
          : this.ysqkData[1].hyl;
      dlhy.yhdcb2019031 =
        this.ysqkData[1].hwzzl == undefined || this.ysqkData[1].hwzzl == ""
          ? ""
          : this.ysqkData[1].hwzzl;
      dlhy.YHDCB2019056 =
        this.ysqkData[1].pjyj == undefined || this.ysqkData[1].pjyj == ""
          ? ""
          : this.ysqkData[1].pjyj;
      //冷藏保温品
      dlhy.YHDCB2019053 =
        this.ysqkData[2].tcs == undefined || this.ysqkData[2].tcs == ""
          ? ""
          : this.ysqkData[2].tcs;
      dlhy.yhdcb2019022 =
        this.ysqkData[2].hyl == undefined || this.ysqkData[2].hyl == ""
          ? ""
          : this.ysqkData[2].hyl;
      dlhy.yhdcb2019032 =
        this.ysqkData[2].hwzzl == undefined || this.ysqkData[2].hwzzl == ""
          ? ""
          : this.ysqkData[2].hwzzl;
      dlhy.YHDCB2019057 =
        this.ysqkData[2].pjyj == undefined || this.ysqkData[2].pjyj == ""
          ? ""
          : this.ysqkData[2].pjyj;
      //危险货物
      dlhy.YHDCB2019054 =
        this.ysqkData[3].tcs == undefined || this.ysqkData[3].tcs == ""
          ? ""
          : this.ysqkData[3].tcs;
      dlhy.yhdcb2019023 =
        this.ysqkData[3].hyl == undefined || this.ysqkData[3].hyl == ""
          ? ""
          : this.ysqkData[3].hyl;
      dlhy.yhdcb2019033 =
        this.ysqkData[3].hwzzl == undefined || this.ysqkData[3].hwzzl == ""
          ? ""
          : this.ysqkData[3].hwzzl;
      dlhy.YHDCB2019058 =
        this.ysqkData[3].pjyj == undefined || this.ysqkData[3].pjyj == ""
          ? ""
          : this.ysqkData[3].pjyj;
      //其中：煤炭及制品
      // this.ysqkData[4].tcs = "";
      dlhy.yhdcb2019024 =
        this.ysqkData[5].hyl == undefined || this.ysqkData[5].hyl == ""
          ? ""
          : this.ysqkData[5].hyl;
      dlhy.yhdcb2019034 =
        this.ysqkData[5].hwzzl == undefined || this.ysqkData[5].hwzzl == ""
          ? ""
          : this.ysqkData[5].hwzzl;
      dlhy.YHDCB2019059 =
        this.ysqkData[5].pjyj == undefined || this.ysqkData[5].pjyj == ""
          ? ""
          : this.ysqkData[5].pjyj;
      //金属矿石
      // this.ysqkData[5].tcs = "";
      dlhy.yhdcb2019025 =
        this.ysqkData[6].hyl == undefined || this.ysqkData[6].hyl == ""
          ? ""
          : this.ysqkData[6].hyl;
      dlhy.yhdcb2019035 =
        this.ysqkData[6].hwzzl == undefined || this.ysqkData[6].hwzzl == ""
          ? ""
          : this.ysqkData[6].hwzzl;
      dlhy.YHDCB2019060 =
        this.ysqkData[6].pjyj == undefined || this.ysqkData[6].pjyj == ""
          ? ""
          : this.ysqkData[6].pjyj;
      //矿建材料及水泥
      // this.ysqkData[6].tcs = "";
      dlhy.yhdcb2019026 =
        this.ysqkData[7].hyl == undefined || this.ysqkData[7].hyl == ""
          ? ""
          : this.ysqkData[7].hyl;
      dlhy.yhdcb2019036 =
        this.ysqkData[7].hwzzl == undefined || this.ysqkData[7].hwzzl == ""
          ? ""
          : this.ysqkData[7].hwzzl;
      dlhy.YHDCB2019061 =
        this.ysqkData[7].pjyj == undefined || this.ysqkData[7].pjyj == ""
          ? ""
          : this.ysqkData[7].pjyj;
      //机械设备电器
      // this.ysqkData[7].tcs = "";
      dlhy.yhdcb2019027 =
        this.ysqkData[8].hyl == undefined || this.ysqkData[8].hyl == ""
          ? ""
          : this.ysqkData[8].hyl;
      dlhy.yhdcb2019037 =
        this.ysqkData[8].hwzzl == undefined || this.ysqkData[8].hwzzl == ""
          ? ""
          : this.ysqkData[8].hwzzl;
      dlhy.YHDCB2019062 =
        this.ysqkData[8].pjyj == undefined || this.ysqkData[8].pjyj == ""
          ? ""
          : this.ysqkData[8].pjyj;
      //轻工医药产品
      // this.ysqkData[8].tcs = "";
      dlhy.yhdcb2019028 =
        this.ysqkData[9].hyl == undefined || this.ysqkData[9].hyl == ""
          ? ""
          : this.ysqkData[9].hyl;
      dlhy.yhdcb2019038 =
        this.ysqkData[9].hwzzl == undefined || this.ysqkData[9].hwzzl == ""
          ? ""
          : this.ysqkData[9].hwzzl;
      dlhy.YHDCB2019063 =
        this.ysqkData[9].pjyj == undefined || this.ysqkData[9].pjyj == ""
          ? ""
          : this.ysqkData[9].pjyj;
      //鲜活农产品
      // this.ysqkData[9].tcs = "";
      dlhy.yhdcb2019029 =
        this.ysqkData[10].hyl == undefined || this.ysqkData[10].hyl == ""
          ? ""
          : this.ysqkData[10].hyl;
      dlhy.yhdcb2019039 =
        this.ysqkData[10].hwzzl == undefined || this.ysqkData[10].hwzzl == ""
          ? ""
          : this.ysqkData[10].hwzzl;
      dlhy.YHDCB2019064 =
        this.ysqkData[10].pjyj == undefined || this.ysqkData[10].pjyj == ""
          ? ""
          : this.ysqkData[10].pjyj;
      //其他
      dlhy.yhdcb2019110 =
        this.ysqkData[11].hyl == undefined || this.ysqkData[11].hyl == ""
          ? ""
          : this.ysqkData[11].hyl;
      dlhy.yhdcb2019111 =
        this.ysqkData[11].hwzzl == undefined || this.ysqkData[11].hwzzl == ""
          ? ""
          : this.ysqkData[11].hwzzl;
      dlhy.yhdcb2019112 =
        this.ysqkData[11].pjyj == undefined || this.ysqkData[11].pjyj == ""
          ? ""
          : this.ysqkData[11].pjyj;
      //财务状况
      //资产总计：
      dlhy.yhdcb2019044 =
        this.cwqkTable[0].sl == undefined || this.cwqkTable[0].sl == "" || this.cwqkTable[0].sl == "-"
          ? ""
          : this.cwqkTable[0].sl;
      //负债合计
      dlhy.yhdcb2019045 =
        this.cwqkTable[1].sl == undefined || this.cwqkTable[1].sl == "" || this.cwqkTable[1].sl == "-"
          ? ""
          : this.cwqkTable[1].sl;
      //营业收入
      dlhy.yhdcb2019046 =
        this.cwqkTable[2].sl == undefined || this.cwqkTable[2].sl == "" || this.cwqkTable[2].sl == "-"
          ? ""
          : this.cwqkTable[2].sl;
      //其中：运输收入
      dlhy.yhdcb2019047 =
        this.cwqkTable[3].sl == undefined || this.cwqkTable[3].sl == "" || this.cwqkTable[3].sl == "-"
          ? ""
          : this.cwqkTable[3].sl;
      //营业成本
      dlhy.yhdcb2019048 =
        this.cwqkTable[4].sl == undefined || this.cwqkTable[4].sl == "" || this.cwqkTable[4].sl == "-"
          ? ""
          : this.cwqkTable[4].sl;
      //其中：营业收入
      dlhy.yhdcb2019049 =
        this.cwqkTable[5].sl == undefined || this.cwqkTable[5].sl == "" || this.cwqkTable[5].sl == "-"
          ? ""
          : this.cwqkTable[5].sl;
      //营业利润
      dlhy.yhdcb2019050 =
        this.cwqkTable[6].sl == undefined || this.cwqkTable[6].sl == "" || this.cwqkTable[6].sl == "-"
          ? ""
          : this.cwqkTable[6].sl;
      //能耗情况
      //总计
      // this.cwqkTable[0].cls = "";
      dlhy.YHDCB2019077 =
        this.nhqkTable[0].cls == undefined || this.nhqkTable[0].cls == ""
          ? ""
          : this.nhqkTable[0].cls;
      dlhy.YHDCB2019065 =
        this.nhqkTable[0].xslc == undefined || this.nhqkTable[0].xslc == ""
          ? ""
          : this.nhqkTable[0].xslc;
      dlhy.YHDCB2019071 =
        this.nhqkTable[0].nh == undefined || this.nhqkTable[0].nh == ""
          ? ""
          : this.nhqkTable[0].nh;
      //其中：汽油车
      // this.cwqkTable[1].cls = "";
      dlhy.yhdcb2019006 =
        this.nhqkTable[2].cls == undefined || this.nhqkTable[2].cls == ""
          ? ""
          : this.nhqkTable[2].cls;
      dlhy.YHDCB2019066 =
        this.nhqkTable[2].xslc == undefined || this.nhqkTable[2].xslc == ""
          ? ""
          : this.nhqkTable[2].xslc;
      dlhy.YHDCB2019072 =
        this.nhqkTable[2].nh == undefined || this.nhqkTable[2].nh == ""
          ? ""
          : this.nhqkTable[2].nh;
      //柴油车
      // this.cwqkTable[2].cls = "";
      dlhy.yhdcb2019007 =
        this.nhqkTable[3].cls == undefined || this.nhqkTable[3].cls == ""
          ? ""
          : this.nhqkTable[3].cls;
      dlhy.YHDCB2019067 =
        this.nhqkTable[3].xslc == undefined || this.nhqkTable[3].xslc == ""
          ? ""
          : this.nhqkTable[3].xslc;
      dlhy.YHDCB2019073 =
        this.nhqkTable[3].nh == undefined || this.nhqkTable[3].nh == ""
          ? ""
          : this.nhqkTable[3].nh;
      //压缩天然气车
      // this.cwqkTable[3].cls = "";
      dlhy.yhdcb2019008 =
        this.nhqkTable[4].cls == undefined || this.nhqkTable[4].cls == ""
          ? ""
          : this.nhqkTable[4].cls;
      dlhy.YHDCB2019068 =
        this.nhqkTable[4].xslc == undefined || this.nhqkTable[4].xslc == ""
          ? ""
          : this.nhqkTable[4].xslc;
      dlhy.YHDCB2019074 =
        this.nhqkTable[4].nh == undefined || this.nhqkTable[4].nh == ""
          ? ""
          : this.nhqkTable[4].nh;
      //液化天然气车
      // this.cwqkTable[4].cls = "";
      dlhy.YHDCB2019078 =
        this.nhqkTable[5].cls == undefined || this.nhqkTable[5].cls == ""
          ? ""
          : this.nhqkTable[5].cls;
      dlhy.YHDCB2019069 =
        this.nhqkTable[5].xslc == undefined || this.nhqkTable[5].xslc == ""
          ? ""
          : this.nhqkTable[5].xslc;
      dlhy.YHDCB2019075 =
        this.nhqkTable[5].nh == undefined || this.nhqkTable[5].nh == ""
          ? ""
          : this.nhqkTable[5].nh;
      //纯电动
      // this.cwqkTable[5].cls = "";
      dlhy.yhdcb2019009 =
        this.nhqkTable[6].cls == undefined || this.nhqkTable[6].cls == ""
          ? ""
          : this.nhqkTable[6].cls;
      dlhy.YHDCB2019070 =
        this.nhqkTable[6].xslc == undefined || this.nhqkTable[6].xslc == ""
          ? ""
          : this.nhqkTable[6].xslc;
      dlhy.YHDCB2019076 =
        this.nhqkTable[6].nh == undefined || this.nhqkTable[6].nh == ""
          ? ""
          : this.nhqkTable[6].nh;
      //其他
      dlhy.yhdcb2019113 =
        this.nhqkTable[7].cls == undefined || this.nhqkTable[7].cls == ""
          ? ""
          : this.nhqkTable[7].cls;
      dlhy.yhdcb2019114 =
        this.nhqkTable[7].xslc == undefined || this.nhqkTable[7].xslc == ""
          ? ""
          : this.nhqkTable[7].xslc;
      dlhy.yhdcb2019115 =
        this.nhqkTable[7].nh == undefined || this.nhqkTable[7].nh == ""
          ? ""
          : this.nhqkTable[7].nh;

      dlhy.yhmlk = this.$route.query.id;
      dlhy.datatime = "2019Y0009";
      dlhy.floatorder = this.dlhyData.floatorder;

      dlhy.yhdcb2019095 = this.getAreaCode(this.yhdcb2019095);

      dlhy.yhdcb2019098 = this.yhdcb2019098;
      dlhy.YHDCB2019079 = this.yhdcb2019079 == ""||this.yhdcb2019079==undefined?"":this.yhdcb2019079;
      dlhy.yhdcb2019097 = this.yhdcb2019097;
      dlhy.yhdcb2019116 = this.yhdcb2019116;
      dlhy.yhdcb2019103 = this.yhdcb2019103.replace(/-/g,'/');

      dlhy.yhdcb2019099 = this.yhdcb2019099==undefined||this.yhdcb2019099==""?"":this.yhdcb2019099;//单位负责人
      dlhy.yhdcb2019100 = this.yhdcb2019100==undefined||this.yhdcb2019100==""?"":this.yhdcb2019100;//统计负责人
      dlhy.yhdcb2019101 = this.yhdcb2019101==undefined||this.yhdcb2019101==""?"":this.yhdcb2019101;//填表人
      dlhy.yhdcb2019102 = this.yhdcb2019102==undefined||this.yhdcb2019102==""?"":this.yhdcb2019102;//填表人联系电话

      dlhyDetil.push(dlhy);

      // return this.dlhyData;
      return dlhyDetil;
    },
    //业户表 选择器
    showPicker(index) {
      if(this.yhjbqkData[1].value == "企业"){
        if (index == 0) {
          //this.getDataXzyh();
        } else if (index == 2) {
          this.getDataQydlzclx();
        } else if (index == 3) {
          this.choseSf();
        } else if (index == 7) {
          this.choseSf108();
        } else if (index == 9) {
           if(this.yhjbqkData[7].value == "是"){
                this.choseYwlb();
           }
        } else if (index == 10) {
          this.choseSf111();
        } else if (index == 11) {
          if(this.yhjbqkData[10].value == "是"){
              this.choseLsgx();
          }
        } else if (index == 12) {
            Toast("企业隶属关系为成员企业时请填写");
        }
      } else {
        if (index == 4) {
          Toast("个体户不用填写统一社会信用代码");
        }
        if (index == 5) {
          Toast("个体户不用填写组织机构代码");
        }
      }
      if (index == 8) {
          if (this.yhjbqkData[1].value == "企业") {
            this.choseSf109();
          } else if (this.yhjbqkData[1].value == "个体户") {
            //this.choseSf1091();
            this.choseGtjyfw();
          }
        }
    },
    choseGtjyfw() {
      this.$router.push({
        path: "/yhInfo/dlhy/gtjyfw",
        //query: { yhmlk: this.$route.query.yhmlk }
      });
    },
    getDataXzyh() {
      this.axios.get("http://zxdc.catsic.com:9090/sampling/json/city").then(
        response => {
          console.log("数据加载成功");

          this.slots101[0].values = response.data.iosProvinces;
          this.iosProvinces = response.data.iosProvinces;

          this.slots101[1].values = response.data.iosCitys;
          this.iosCitys = response.data.iosCitys;

          this.slots101[2].values = response.data.iosCountys;
          this.iosCountys = response.data.iosCountys;

          this.popupVisible = true;
        },
        response => {
          console.log("数据加载失败");
        }
      );
    },
    getCityData(code) {
      this.axios.get("http://zxdc.catsic.com:9090/sampling/json/city").then(
        response => {
          console.log("数据加载成功");
          this.provincesArray = response.data.iosProvinces;
          this.cityArray = response.data.iosCitys;
          this.countyArray = response.data.iosCountys;
          this.yhjbqkData[0].value = this.getCityName(code);
          console.log(code+"this.getCityName(code)"+this.getCityName(code));
        },
        response => {
          console.log("数据加载失败");
        }
      );
    },
    getDataQydlzclx() {
      this.$http
        .get("http://zxdc.catsic.com:9090/sampling/json/loginRegisterType")
        .then(
          response => {
            console.log("数据加载成功");

            this.slots103[0].values = response.body.one;
            this.qydlzclxOne = response.body.one;

            this.slots103[1].values = response.body.two;
            this.qydlzclxTwo = response.body.two;

            this.slots103[2].values = response.body.three;
            this.qydlzclxThree = response.body.three;

            this.popupVisible103 = true;
          },
          response => {
            console.log("数据加载失败");
          }
        );
    },
    // 交通运输业务类别
    choseYwlb() {
      this.popupVisible1031 = true;
      this.qydlzclxOne1 = this.slotsnew110[0].values;
      this.qydlzclxTwo1 = this.slotsnew110[1].values;
      //this.qydlzclxThree1 = this.slotsnew110[2].values;
      // this.$http.get("http://zxdc.catsic.com:9090/sampling/json/zyjtywlb").then(
      //   response => {
      //     console.log("数据加载成功");
      //     this.slots110[0].values = response.body.ywlb;
          
      //   },
      //   response => {
      //     console.log("数据加载失败");
      //   }
      // );
      
    },
    // 企业隶属关系
    choseLsgx() {
      this.$http.get("http://zxdc.catsic.com:9090/sampling/json/zyjtywlb").then(
        response => {
          console.log("数据加载成功");
          this.slots112[0].values = response.body.lsgx;
          this.popupVisible112 = true;
        },
        response => {
          console.log("数据加载失败");
        }
      );
    },
    // 选择是或者否
    choseSf() {
      this.$http.get("http://zxdc.catsic.com:9090/sampling/json/zyjtywlb").then(
        response => {
          console.log("数据加载成功");
          this.slots104[0].values = response.body.sf;
          this.popupVisible104 = true;
        },
        response => {
          console.log("数据加载失败");
        }
      );
    },
    choseSf108() {
      this.$http.get("http://zxdc.catsic.com:9090/sampling/json/zyjtywlb").then(
        response => {
          console.log("数据加载成功");
          this.slots108[0].values = response.body.sf;
          this.popupVisible108 = true;
        },
        response => {
          console.log("数据加载失败");
        }
      );
    },
    choseSf111() {
      this.$http.get("http://zxdc.catsic.com:9090/sampling/json/zyjtywlb").then(
        response => {
          console.log("数据加载成功");
          this.slots111[0].values = response.body.sf;
          this.popupVisible111 = true;
        },
        response => {
          console.log("数据加载失败");
        }
      );
    },
    choseSf109() {
      this.$http.get("http://zxdc.catsic.com:9090/sampling/json/zyjtywlb").then(
        response => {
          console.log("数据加载成功");
          let list = response.body.ywlb;
          this.options = [];
          for (let j = 0; j < list.length; j++) {
            let companyItem = {};
            companyItem.label = list[j].name;
            companyItem.value = list[j].code;
            console.log(list[j].name);
            this.options.push(companyItem);
          }
          this.popupVisible109 = true;
        },
        response => {
          console.log("数据加载失败");
        }
      );
    },
    //个体经营范围
    choseSf1091() {
      this.$http.get("http://zxdc.catsic.com:9090/sampling/json/zyjtywlb").then(
        response => {
          console.log("数据加载成功");
          let list = response.body.gtjyfw;
          this.options1 = [];
          for (let j = 0; j < list.length; j++) {
            let companyItem = {};
            companyItem.label = list[j].name;
            companyItem.value = list[j].code;
            console.log(list[j].name);
            this.options1.push(companyItem);
          }
          this.popupVisible1091 = true;
        },
        response => {
          console.log("数据加载失败");
        }
      );
    },
    // 选择货物种类
    showPickerArea() {
      this.$http.get("http://zxdc.catsic.com:9090/sampling/json/zyjtywlb").then(
        response => {
          console.log("数据加载成功");
          this.slotsArea[0].values = response.body.area;
          this.popupVisibleArea = true;
        },
        response => {
          console.log("数据加载失败");
        }
      );
    },

    // 行政区划  确定按钮
    sure() {
      var show = false;
      var result = this.result;
      var province = this.provinceValue;
      var city = this.cityValue;
      var county = this.countyValue;

      this.yhjbqkData[0].value = province + "-" + city + "-" + county;

      this.popupVisible = false;
      console.log(show, result, province, city, county);
    },
    // 企业登录注册类型  确定按钮
    sure103() {
      var show = false;
      this.yhjbqkData[2].value =
        this.qydlzclxTwoValue + this.qydlzclxThreeValue; //
      if (this.qydlzclxThreeValue != "") {
        this.yhjbqkData[2].value = this.qydlzclxThreeValue;
      }
      if(this.qydlzclxOneValue == "其他"){
        this.yhjbqkData[2].value = "其他";
      }
      this.popupVisible103 = false;
    },
    clear103(){
        this.popupVisible103 = false;
        this.yhjbqkData[2].value = "";
    },
    // 交通运输业务类型  确定按钮
    sure110() {
      var show = false;
      this.yhjbqkData[9].value =
        this.qydlzclxTwoValue1 + this.qydlzclxThreeValue1; //this.qydlzclxOneValue
      if (this.qydlzclxThreeValue1 != "") {
        this.yhjbqkData[9].value = this.qydlzclxThreeValue1;
      }
      //this.yhjbqkData[9].value = this.$refs.picker.getValues()[0].name;

      this.popupVisible1031 = false;
    },
    // 企业登录注册类型  确定按钮
    sure112() {
      var show = false;

      this.yhjbqkData[11].value = this.$refs.picker112.getValues()[0].name;

      this.popupVisible112 = false;
    },
    // 是否法人单位  确定按钮
    sure104() {
      var show = false;

      this.yhjbqkData[3].value = this.$refs.picker104.getValues()[0].name;
      if(this.yhjbqkData[3].value == "否"){
          Toast("财务情况将不可填");
          this.cwqkTable[0].sl = "-";              
          this.cwqkTable[1].sl = "-";              
          this.cwqkTable[2].sl = "-";              
          this.cwqkTable[3].sl = "-";             
          this.cwqkTable[4].sl = "-";              
          this.cwqkTable[5].sl = "-";              
          this.cwqkTable[6].sl = "-";
      } else {
          this.cwqkTable[0].sl = "";              
          this.cwqkTable[1].sl = "";              
          this.cwqkTable[2].sl = "";              
          this.cwqkTable[3].sl = "";             
          this.cwqkTable[4].sl = "";              
          this.cwqkTable[5].sl = "";              
          this.cwqkTable[6].sl = "";
      }

      this.popupVisible104 = false;
    },
    //   确定按钮
    sure108() {
      var show = false;

      this.yhjbqkData[7].value = this.$refs.picker108.getValues()[0].name;

      if(this.yhjbqkData[7].value == "否"){
            this.yhjbqkData[9].value = "";
      }

      this.popupVisible108 = false;
    },
    sure111() {
      var show = false;

      this.yhjbqkData[10].value = this.$refs.picker111.getValues()[0].name;
      if(this.yhjbqkData[10].value == "否"){
          this.yhjbqkData[11].value = "";
      }

      this.popupVisible111 = false;
    },
    sureArea() {
      var show = false;
      this.yhdcb2019095 = this.$refs.pickerArea.getValues()[0].name;
      this.popupVisibleArea = false;
    },
    clearArea() {
      this.yhdcb2019095 = "";
      this.popupVisibleArea = false;
    },
    clear109(){
        this.popupVisible109 = false;
        this.yhjbqkData[8].value = "";
        this.qyjyfwCode = "";
    },
    //企业经营范围 确定按钮
    sure109() {
      var show = false;
      var strMore = "";
      if (this.checkListValue.length > 0) {
        this.qyjyfwCode = "";
        for (let i = 0; i < this.checkListValue.length; i++) {
          if (i == 0) {
            this.qyjyfwCode += this.checkListValue[i];
            for (let n = 0; n < this.options.length; n++) {
              if (this.checkListValue[i] == this.options[n].value) {
                strMore += this.options[n].label;
              }
            }
          } else {
            this.qyjyfwCode += ";" + this.checkListValue[i];
            for (let m = 0; m < this.options.length; m++) {
              if (this.checkListValue[i] == this.options[m].value) {
                strMore += ";" + this.options[m].label;
              }
            }
          }
        }
      } else {
        Toast("至少选择一项");
        return;
      }
      console.log("企业经营范围---" + this.qyjyfwCode);
      this.yhjbqkData[8].value = strMore;
      this.popupVisible109 = false;
    },
    //个体经营范围 确定按钮
    sure1091() {
      var show = false;
      var strMore = "";
      if (this.checkListValue1.length > 0) {
        this.qyjyfwCode1 = "";
        for (let i = 0; i < this.checkListValue1.length; i++) {
          if (i == 0) {
            this.qyjyfwCode1 += this.checkListValue1[i];
            for (let n = 0; n < this.options1.length; n++) {
              if (this.checkListValue1[i] == this.options1[n].value) {
                strMore += this.options1[n].label;
              }
            }
          } else {
            this.qyjyfwCode1 += ";" + this.checkListValue1[i];
            for (let m = 0; m < this.options1.length; m++) {
              if (this.checkListValue1[i] == this.options1[m].value) {
                strMore += ";" + this.options1[m].label;
              }
            }
          }
        }
      } else {
        Toast("至少选择一项");
        return;
      }
      console.log("个体经营范围---" + this.qyjyfwCode1);
      this.yhjbqkData[8].value = strMore;
      this.popupVisible1091 = false;
    },
    // 省市县筛选器值变化时调用
    onValuesChange(picker, values) {
      var cityArray = [],
        countyArray = [];
      if (this.iosCitys.length > 0) {
      } else {
        return;
      }
      if (values[0]) {
        for (let i = 0; i < this.iosCitys.length; i++) {
          if (values[0].id == this.iosCitys[i].parentId) {
            cityArray.push(this.iosCitys[i]);
          }
        }
        picker.setSlotValues(1, cityArray);
      }

      if (values[1]) {
        for (let j = 0; j < this.iosCountys.length; j++) {
          if (values[1].id == this.iosCountys[j].parentId) {
            countyArray.push(this.iosCountys[j]);
          }
        }
        picker.setSlotValues(2, countyArray);
      }
      var result = this.result;

      if (typeof values[1] == "object" && typeof values[2] == "object") {
        result = values[0].value + values[1].value + values[2].value;
        this.provinceValue = values[0].value;
        this.cityValue = values[1].value;
        this.countyValue = values[2].value;
        this.countyCode = values[2].id;

        for (let i = 0; i < this.iosProvinces.length; i++) {
          if (this.iosProvinces[i].value == this.province) {
            this.first = i;
          }
        }
        for (let i = 0; i < cityArray.length; i++) {
          if (this.city == cityArray[i].value) {
            this.second = i;
          }
        }
        for (var j = 0; j < countyArray.length; j++) {
          if (this.county == countyArray[j].value) {
            this.third = j;
          }
        }
        this.slots101[0].defaultIndex = parseInt(this.first);
        this.slots101[1].defaultIndex = parseInt(this.second);
      } else if (typeof values[1] != "object" && typeof values[2] == "object") {
        values[1] = this.iosCitys;
        result = values[0].value + this.city + values[2].value;
        this.provinceValue = values[0].value;
        this.cityValue = this.city;
        this.countyValue = values[2].value;
        this.countyCode = values[2].id;
      }
      this.result = result;
    },
    // 企业登录注册类型 筛选器值变化时调用
    onValuesChange103(picker, values) {
      var cityArray = [],
        countyArray = [];

      if (values[0]) {
        for (let i = 0; i < this.qydlzclxTwo.length; i++) {
          if (values[0].id == this.qydlzclxTwo[i].parentId) {
            cityArray.push(this.qydlzclxTwo[i]);
          }
        }
        picker.setSlotValues(1, cityArray);
      }

      if (values[1]) {
        for (let j = 0; j < this.qydlzclxThree.length; j++) {
          if (values[1].id == this.qydlzclxThree[j].parentId) {
            countyArray.push(this.qydlzclxThree[j]);
          }
        }
        picker.setSlotValues(2, countyArray);
      }
      //var result = this.result;
      this.qydlzclxOneValue = "";
      this.qydlzclxTwoValue = "";
      this.qydlzclxThreeValue = "";

      this.qydlzclxOneValue = values[0].value;
      this.qydlzclxTwoValue = values[1].value;

      if (values[2].value != "-") {
        this.qydlzclxThreeValue = values[2].value;
      }

      // if(typeof(values[2]) == 'object'){
      //     this.qydlzclxThreeValue = values[2].value = '-'?'': values[2].value;
      // }

      // if(typeof(values[1]) == 'object' && typeof(values[2]) == 'object'){
      //     result = values[0].value + values[1].value + values[2].value;
      //     this.qydlzclxOneValue = values[0].value;
      //     this.qydlzclxTwoValue = values[1].value;
      //     this.qydlzclxThree = values[2].value;

      //     //this.countyCode = values[2].id;

      //     for(let i=0; i<this.qydlzclxOne.length; i++){
      //         if(this.qydlzclxOne[i].value == this.province){
      //             this.first = i;
      //         }
      //     }
      //     for(let i=0; i<cityArray.length; i++){
      //         if(this.city == cityArray[i].value){
      //             this.second = i;
      //         }
      //     }
      //     for(var j=0; j<countyArray.length; j++){
      //         if(this.county == countyArray[j].value){
      //             this.third = j;
      //         }
      //     }
      //     this.slots103[0].defaultIndex = parseInt(this.first);
      //     this.slots103[1].defaultIndex = parseInt(this.second);
      // }else if(typeof(values[1]) != 'object' && typeof(values[2]) == 'object'){
      //     values[1] = this.qydlzclxTwo;
      //     result = values[0].value + this.city + values[2].value;
      //     this.qydlzclxOneValue = values[0].value;
      //     this.qydlzclxTwoValue = this.city;
      //     this.qydlzclxThree = values[2].value;
      //     //this.countyCode = values[2].id;
      // }
    },
    onValuesChangeNew103(picker, values) {
      var cityArray = [],
        countyArray = [];

      if (values[0]) {
        for (let i = 0; i < this.qydlzclxTwo1.length; i++) {
          if (values[0].id == this.qydlzclxTwo1[i].parentId) {
            cityArray.push(this.qydlzclxTwo1[i]);
          }
        }
        picker.setSlotValues(1, cityArray);
      }

      // if (values[1]) {
      //   for (let j = 0; j < this.qydlzclxThree1.length; j++) {
      //     if (values[1].id == this.qydlzclxThree1[j].parentId) {
      //       countyArray.push(this.qydlzclxThree1[j]);
      //     }
      //   }
      //   picker.setSlotValues(2, countyArray);
      // }
      //var result = this.result;
      this.qydlzclxOneValue1 = "";
      this.qydlzclxTwoValue1 = "";
      this.qydlzclxThreeValue1 = "";

      this.qydlzclxOneValue1 = values[0].value;
      this.qydlzclxTwoValue1 = values[1].value;

      // if (values[2].value != "-") {
      //   this.qydlzclxThreeValue1 = values[2].value;
      // }
    },
    getQyTypeName(code) {
      // 获取企业登陆注册类型名称
      var QyType = [
        {
          code: "100",
          name: "内资"
        },
        {
          code: "110",
          name: "国有"
        },
        {
          code: "120",
          name: "集体"
        },
        {
          code: "130",
          name: "股份合作"
        },
        {
          code: "140",
          name: "联营"
        },
        {
          code: "141",
          name: "国有联营"
        },
        {
          code: "142",
          name: "集体联营"
        },
        {
          code: "143",
          name: "国有与集体联营"
        },
        {
          code: "149",
          name: "其他联营"
        },
        {
          code: "150",
          name: "有限责任公司"
        },
        {
          code: "151",
          name: "国有独资公司"
        },
        {
          code: "159",
          name: "其他有限责任公司"
        },
        {
          code: "160",
          name: "股份有限公司"
        },
        {
          code: "170",
          name: "私营"
        },
        {
          code: "171",
          name: "私营独资"
        },
        {
          code: "172",
          name: "私营合伙"
        },
        {
          code: "173",
          name: "私营有限责任公司"
        },
        {
          code: "174",
          name: "私营股份有限公司"
        },
        {
          code: "175",
          name: "个体经营"
        },
        {
          code: "179",
          name: "其他私有"
        },
        {
          code: "190",
          name: "其他内资"
        },
        {
          code: "200",
          name: "港澳台商投资"
        },
        {
          code: "210",
          name: "与港澳台合资"
        },
        {
          code: "220",
          name: "与港澳台合作"
        },
        {
          code: "230",
          name: "港澳台独资"
        },
        {
          code: "240",
          name: "港澳台投资股份有限公司"
        },
        {
          code: "290",
          name: "其他港澳台投资"
        },
        {
          code: "300",
          name: "外商投资"
        },
        {
          code: "310",
          name: "中外合资"
        },
        {
          code: "320",
          name: "中外合作"
        },
        {
          code: "330",
          name: "外资"
        },
        {
          code: "340",
          name: "外商投资股份有限公司"
        },
        {
          code: "390",
          name: "其他国外投资"
        },
        {
          code: "900",
          name: "其他"
        }
      ];
      var name;
      QyType.forEach(item => {
        if (item.code === code) {
          name = item.name;
        }
      });
      return name;
    },
     getzyjtysywlbCode(name) {
      var code;
      let list = this.slotsnew110[1].values;
      for(let i=0;i<list.length;i++){
          if(name == (list[i].value)){
              code = list[i].id;
          }
      }
      return code;
     },
     getzyjtysywlbName(code) {
      var name;
      let list = this.slotsnew110[1].values;
      for(let i=0;i<list.length;i++){
          if(code == list[i].id){
              name = list[i].value;
          }
      }
      return name;
     },
    getQyTypeCode(name) {
      // 获取企业登陆注册类型名称
      var QyType = [
        {
          code: "100",
          name: "内资"
        },
        {
          code: "110",
          name: "国有"
        },
        {
          code: "120",
          name: "集体"
        },
        {
          code: "130",
          name: "股份合作"
        },
        {
          code: "140",
          name: "联营"
        },
        {
          code: "141",
          name: "国有联营"
        },
        {
          code: "142",
          name: "集体联营"
        },
        {
          code: "143",
          name: "国有与集体联营"
        },
        {
          code: "149",
          name: "其他联营"
        },
        {
          code: "150",
          name: "有限责任公司"
        },
        {
          code: "151",
          name: "国有独资公司"
        },
        {
          code: "159",
          name: "其他有限责任公司"
        },
        {
          code: "160",
          name: "股份有限公司"
        },
        {
          code: "170",
          name: "私营"
        },
        {
          code: "171",
          name: "私营独资"
        },
        {
          code: "172",
          name: "私营合伙"
        },
        {
          code: "173",
          name: "私营有限责任公司"
        },
        {
          code: "174",
          name: "私营股份有限公司"
        },
        {
          code: "175",
          name: "个体经营"
        },
        {
          code: "179",
          name: "其他私有"
        },
        {
          code: "190",
          name: "其他内资"
        },
        {
          code: "200",
          name: "港澳台商投资"
        },
        {
          code: "210",
          name: "与港澳台合资"
        },
        {
          code: "220",
          name: "与港澳台合作"
        },
        {
          code: "230",
          name: "港澳台独资"
        },
        {
          code: "240",
          name: "港澳台投资股份有限公司"
        },
        {
          code: "290",
          name: "其他港澳台投资"
        },
        {
          code: "300",
          name: "外商投资"
        },
        {
          code: "310",
          name: "中外合资"
        },
        {
          code: "320",
          name: "中外合作"
        },
        {
          code: "330",
          name: "外资"
        },
        {
          code: "340",
          name: "外商投资股份有限公司"
        },
        {
          code: "390",
          name: "其他国外投资"
        },
        {
          code: "900",
          name: "其他"
        }
      ];
      var code;
      QyType.forEach(item => {
        if (item.name === name) {
          code = item.code;
        }
      });
      return code;
    },
    // 根据编码获取省市县
    getCityName(code) {
      let countyParentId = "",
        cityParentId = "";
      let iosCountysName = "",
        iosCitysName = "",
        iosProvincesName = "";
      for (let i = 0; i < this.countyArray.length; i++) {
        if (code == this.countyArray[i].id) {
          iosCountysName = this.countyArray[i].value;
          countyParentId = this.countyArray[i].parentId;
        }
      }
      if(iosCountysName == ""){
        iosCountysName = "市本级";
      }
      if(countyParentId == ""){
        countyParentId = code;
      }
      for (let j = 0; j < this.cityArray.length; j++) {
        if (countyParentId == this.cityArray[j].id) {
          iosCitysName = this.cityArray[j].value;
          cityParentId = this.cityArray[j].parentId;
        }
      }
      for (let n = 0; n < this.provincesArray.length; n++) {
        if (cityParentId == this.provincesArray[n].id) {
          iosProvincesName = this.provincesArray[n].value;
        }
      }
      return iosProvincesName + "-" + iosCitysName + "-" + iosCountysName;
    },
    // 获取业务类型code
    getYwTypeCode(name) {
      var QyType = [
        {
          code: "400",
          name: "道路货运"
        },
        {
          code: "410",
          name: "普通货运"
        },
        {
          code: "421",
          name: "货物专用运输（集装箱）"
        },
        {
          code: "422",
          name: "货物专用运输（冷藏保鲜设备）"
        },
        {
          code: "423",
          name: "货物专用运输（罐式容器）"
        },
        {
          code: "430",
          name: "大型物件运输"
        },
        {
          code: "440",
          name: "危险货物运输"
        }
      ];
      var code;
      QyType.forEach(item => {
        if (item.name === name) {
          code = item.code;
        }
      });
      return code;
    },
    // 获取业务类型name
    getYwTypeName(code) {
      var QyType = [
        {
          code: "400",
          name: "道路货运"
        },
        {
          code: "410",
          name: "普通货运"
        },
        {
          code: "421",
          name: "货物专用运输（集装箱）"
        },
        {
          code: "422",
          name: "货物专用运输（冷藏保鲜设备）"
        },
        {
          code: "423",
          name: "货物专用运输（罐式容器）"
        },
        {
          code: "430",
          name: "大型物件运输"
        },
        {
          code: "440",
          name: "危险货物运输"
        }
      ];
      var name;
      QyType.forEach(item => {
        if (item.code === code) {
          name = item.name;
        }
      });
      return name;
    },
    // 获取企业隶属关系name
    getLsgxName(code) {
      var QyType = [
        {
          code: "1",
          name: "集团母公司（核心企业或集团总部）"
        },
        {
          code: "2",
          name: "成员企业"
        }
      ];
      var name;
      QyType.forEach(item => {
        if (item.code === code) {
          name = item.name;
        }
      });
      return name;
    },
    // 获取企业隶属关系code
    getLsgxCode(name) {
      var QyType = [
        {
          code: "1",
          name: "集团母公司（核心企业或集团总部）"
        },
        {
          code: "2",
          name: "成员企业"
        }
      ];
      var code;
      QyType.forEach(item => {
        if (item.name === name) {
          code = item.code;
        }
      });
      return code;
    },
    // 获取业务类型name
    getGtjyfwName(code) {
      var QyType = [
        {
          code: "02100",
          name: "道路普通货物运输"
        },
        {
          code: "02200",
          name: "货物专用运输"
        },
        {
          code: "02300",
          name: "大型物件运输"
        },
        {
          code: "03000",
          name: "道路危险货物运输"
        },
        {
          code: "07200",
          name: "国际道路货物运输"
        },
        {
          code: "11000",
          name: "道路放射性货物运输"
        }
      ];
      var name;
      QyType.forEach(item => {
        if (item.code === code) {
          name = item.name;
        }
      });
      return name;
    },
    getGtjyfwNameNew(code) {
      var QyType = [

        {code: "02000", name: "道路普通货运"},
        {code: "03000", name: "道路危险货物运输"},
        {code: "07200", name: "国际道路货物运输"},
        {code: "11000", name: "道路放射性货物运输"},

        {code: "02100", name: "道路普通货物运输"},
        {code: "02200", name: "货物专用运输"},
        {code: "02300", name: "大型物件运输"},
        {code: "03100", name: "经营性道路危险货物运输"},
        {code: "03200", name: "非经营性危险货物运输"},
        {code: "07201", name: "国际道路货物运输"},
        {code: "07202", name: "国际道路危险货物运输"},
        {code: "11100", name: "经营性道路放射性货物运输"},
        {code: "11200", name: "非经营性放射性货物运输"},

        {code: "02101", name: "道路普通货物运输"},
        {code: "02201", name: "货物专用运输（集装箱）"},
        {code: "02202", name: "货物专用运输（冷藏保鲜设备）"},
        {code: "02203", name: "货物专用运输（罐式容器）"},

        {code: "02301", name: "大型物件运输（一类）"},
        {code: "02302", name: "大型物件运输（二类）"},
        {code: "02303", name: "大型物件运输（三类）"},
        {code: "02304", name: "大型物件运输（四类）"},

        {code: "03111", name: "危险货物运输（1类1项）"},
        {code: "03112", name: "危险货物运输（1类2项）"},
        {code: "03113", name: "危险货物运输（1类3项）"},
        {code: "03114", name: "危险货物运输（1类4项）"},
        {code: "03115", name: "危险货物运输（1类5项）"},
        {code: "03116", name: "危险货物运输（1类6项）"},

        {code: "03121", name: "危险货物运输（2类1项）"},
        {code: "03122", name: "危险货物运输（2类2项）"},
        {code: "03123", name: "危险货物运输（2类3项）"},

        {code: "03131", name: "危险货物运输（3类）"},
        {code: "03141", name: "危险货物运输（4类1项）"},
        {code: "03142", name: "危险货物运输（4类2项）"},
        {code: "03143", name: "危险货物运输（4类3项）"},

        {code: "03151", name: "危险货物运输（5类1项）"},
        {code: "03152", name: "危险货物运输（5类2项）"},
        {code: "03161", name: "危险货物运输（6类1项）"},
        {code: "03162", name: "危险货物运输（6类2项）"},

        {code: "03181", name: "危险货物运输（8类）"},
        {code: "03191", name: "危险货物运输（9类）"},
        
        {code: "03195", name: "剧毒化学品"},
        {code: "03196", name: "医疗废物"},
        {code: "03197", name: "危险废物"},

        {code: "03211", name: "危险货物运输（1类1项）"},
        {code: "03212", name: "危险货物运输（1类2项）"},
        {code: "03213", name: "危险货物运输（1类3项）"},
        {code: "03214", name: "危险货物运输（1类4项）"},
        {code: "03215", name: "危险货物运输（1类5项）"},
        {code: "03216", name: "危险货物运输（1类6项）"},

        {code: "03221", name: "危险货物运输（2类1项）"},
        {code: "03222", name: "危险货物运输（2类2项）"},
        {code: "03223", name: "危险货物运输（2类3项）"},

        {code: "03231", name: "危险货物运输（3类）"},
        {code: "03241", name: "危险货物运输（4类1项）"},
        {code: "03242", name: "危险货物运输（4类2项）"},
        {code: "03243", name: "危险货物运输（4类3项）"},

        {code: "03251", name: "危险货物运输（5类1项）"},
        {code: "03252", name: "危险货物运输（5类2项）"},
        {code: "03261", name: "危险货物运输（6类1项）"},
        {code: "03262", name: "危险货物运输（6类2项）"},

        {code: "03281", name: "危险货物运输（8类）"},
        {code: "03291", name: "危险货物运输（9类）"},
        
        {code: "03295", name: "剧毒化学品"},
        {code: "03296", name: "医疗废物"},
        {code: "03297", name: "危险废物"},

        {code: "07201", name: "国际道路货物运输"},
        {code: "07202", name: "国际道路危险货物运输"},

        {code: "11101", name: "放射性货物运输（1类）"},
        {code: "11102", name: "放射性货物运输（2类）"},
        {code: "11103", name: "放射性货物运输（3类）"},
        {code: "11201", name: "放射性货物运输（1类）"},
        {code: "11202", name: "放射性货物运输（2类）"},
        {code: "11203", name: "放射性货物运输（3类）"},
        
      ];
      var name;
      QyType.forEach(item => {
        if (item.code === code) {
          name = item.name;
        }
      });
      return name;
    },
    getAreaName(code) {
      var QyType = [
        {
          code: "A",
          name: "跨省（不相邻省份）"
        },
        {
          code: "B",
          name: "跨省（相邻省份）"
        },
        {
          code: "C",
          name: "一个省内不同地市间"
        },
        {
          code: "D",
          name: "同一地市（直辖市）内"
        }
      ];
      var name;
      QyType.forEach(item => {
        if (item.code === code) {
          name = item.name;
        }
      });
      return name;
    },
    getAreaCode(name) {
      var QyType = [
        {
          code: "A",
          name: "跨省（不相邻省份）"
        },
        {
          code: "B",
          name: "跨省（相邻省份）"
        },
        {
          code: "C",
          name: "一个省内不同地市间"
        },
        {
          code: "D",
          name: "同一地市（直辖市）内"
        }
      ];
      var code;
      QyType.forEach(item => {
        if (item.name === name) {
          code = item.code;
        }
      });
      return code;
    },
    // add by qzn 20190720 start
    // 保留两位小数向上进位，逢小数上位加1
    keepTwoDecimalFull(num) {
      if(num==""||num==undefined){
        return ""
      }
      num += 0.0049;
      var result = parseFloat(num);
      if (isNaN(result)) {
        //alert("传递参数错误，请检查！");
        return num;
      }
      result = this.keepIntegerDecimalFull(num * 100) / 100;
      var s_x = result.toString();
      var pos_decimal = s_x.indexOf(".");
      if (pos_decimal < 0) {
        pos_decimal = s_x.length;
        s_x += ".";
      }
      while (s_x.length <= pos_decimal + 2) {
        s_x += "0";
      }
      return s_x;
    },
    // 保留三位
    keepthreeDecimalFull(varObj) {
      if(varObj==""||varObj==undefined){
        return "";
      }
      varObj += 0.00049;
      var f_x = parseFloat(varObj);
      if (isNaN(f_x)) {
        return "";
      }
      f_x = this.keepIntegerDecimalFull(f_x * 1000) / 1000;
      var s_x = f_x.toString();
      var pos_decimal = s_x.indexOf(".");
      if (pos_decimal < 0) {
        pos_decimal = s_x.length;
        s_x += ".";
      }
      while (s_x.length <= pos_decimal + 3) {
        s_x += "0";
      }
      return s_x;
    },
    // 保留整数
    keepIntegerDecimalFull(num){
      if(num==""||undefined){
        return ""
      }
      return Math.round(num)
    }
    // add by qzn 20190720 end
  },
  created() {
    this.getDates();
  },
  mounted() {
    this.startTime();
  }
};
</script>
<style lang="scss">
.dlhytable {
  overflow-y: scroll;
  overflow-x: scroll;
  .mui-table-view-cell.mui-active {
    background-color: rgb(48, 186, 250);
  }
  .tb-edit .el-input {
    display: none;
  }
  .tb-edit .current-row .el-input {
    display: block;
  }
  .tb-edit .current-row .el-input + span {
    display: none;
  }
  .login-form-input .el-input__inner {
    border: 0 none;
    border-bottom: 0;
    border-radius: 0px;
  }
  input[type="color"],
  input[type="date"],
  input[type="datetime-local"],
  input[type="datetime"],
  input[type="month"],
  input[type="number"],
  input[type="password"],
  input[type="search"],
  input[type="tel"],
  input[type="text"],
  input[type="time"],
  input[type="url"],
  input[type="week"],
  select,
  textarea {
    line-height: 21px;
    width: 100%;
    height: 40px;
    margin-bottom: 0;
    padding-left: 0;
    -webkit-user-select: text;
    border: 0 solid #3c97ff;
    border-radius: 0;
    outline: 0;
    background-color: #ffffff; //输入框背景色
    -webkit-appearance: none;
  }
  .el-table--enable-row-hover .el-table__body tr:hover > td {
    background-color: #ffffff; //hover行背景色
  }
  .el-table--striped .el-table__body tr.el-table__row--striped.current-row td,
  .el-table__body tr.current-row > td,
  .el-table__body tr.hover-row.current-row > td,
  .el-table__body tr.hover-row.el-table__row--striped.current-row > td,
  .el-table__body tr.hover-row.el-table__row--striped > td,
  .el-table__body tr.hover-row > td {
    background-color: transparent; //行选中的背景色
  }

  .el-input.is-disabled .el-input__inner {
    background-color: #fff; //未获焦点的输入框选中后背景色
    color: #606266;
  }
}

.mui-table-view-cell.mui-collapse .mui-collapse-content {
  position: relative;
  display: none;
  overflow: hidden;
  margin: 11px -15px -11px;
  padding: 0;
  -webkit-transition: height 0.35s ease;
  -o-transition: height 0.35s ease;
  transition: height 0.35s ease;
  background: #fff;
}

.el-table .flag-row {
  background: #f0f9eb;
}

.paddingleft20 {
  padding-left: 30px;
}
.picker-toolbar-title {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  height: 200px;
  line-height: 40px;
  font-size: 16px;
  width: 100%;
}
.usi-btn-cancel,
.usi-btn-sure {
  color: #26a2ff;
}
.mint-popup-bottom {
  width: 100%;
  top: auto;
  right: auto;
  bottom: 0;
}
</style>
